If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > Oracle Installation

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-03-11, 21:56
ordbas11 ordbas11 is offline
Registered User
 
Join Date: Dec 2011
Posts: 6
Oracle Installation

I have installed Oracle 11G R2 for Microsoft Windows(x64)--Enterprise Edition on my laptop with Windows 7 Enterprise 64 bit Operating System

I am having problems with the installation.

This is how I installed it--

Step 2--Create and Configure a Database
Step 3--Desktop Class
Step 4--Typical Installation
Step 5--Prerequisite Checks
Step 6--Summary
Step 7--Install Product
Step 8--Finish
The Installation of Oracle Database was successful

I am trying to install a financial software that will use this Oracle database.

It asks me Database Properties

I enter the following:

Server Address--P7WZAC9
Port--1521
Oracle Version--Oracle 11G R2
Oracle Home: C:\Oracle\product\11.2.0\dbhome_1
TNS Alias--orcl
Database Instance--orcl
Schema Owner--DBO
User: dbo
Password--ababab

It performs Verify Database properties

It fails on Verify SQL tool OS bits compatilibility

I get two error messages

1) The SQL tool (SQLPLUS) used to connect to the database has not the correct bits compatibility (like 32 bits tool with a 64 bits distribution),Please install a correct version.

2) Error cannot connect with JDBC.Oracle.Thin
Error cannot connect with JDBC.Oracle.Thin@P7WZAC9.1521.orcl(user=dbo,password=ababab)


How do I fix this?
Reply With Quote
  #2 (permalink)  
Old 12-03-11, 22:14
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 6,415
>I get two error messages
ERROR? What Error? I don't see any error.
Oracle error codes & messages look like below.
Code:
SQL> insert into friends values (1,1);
insert into friends values (1,1)
*
ERROR at line 1:
ORA-00001: unique constraint (USER1.PK_FRIENDS) violated
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Reply With Quote
  #3 (permalink)  
Old 12-04-11, 12:54
ordbas11 ordbas11 is offline
Registered User
 
Join Date: Dec 2011
Posts: 6
The error messages are from the financial software in relation to the database
Reply With Quote
  #4 (permalink)  
Old 12-04-11, 13:04
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 6,415
Change the line below "DriverManager.getConnection" to match your environment to
independently verify network connectivity.

Code:
import java.sql.*;
class Conn {
  public static void main (String[] args) throws Exception
  {
   Class.forName ("oracle.jdbc.OracleDriver");

   Connection conn = DriverManager.getConnection
     ("jdbc:oracle:thin:@//localhost:1521/orcl", "scott", "tiger");
                        // @//machineName:port/SID,   userid,  password
   try {
     Statement stmt = conn.createStatement();
     try {
       ResultSet rset = stmt.executeQuery("select BANNER from SYS.V_$VERSION");
       try {
         while (rset.next())
           System.out.println (rset.getString(1));   // Print col 1
       } 
       finally {
          try { rset.close(); } catch (Exception ignore) {}
       }
     } 
     finally {
       try { stmt.close(); } catch (Exception ignore) {}
     }
   } 
   finally {
     try { conn.close(); } catch (Exception ignore) {}
   }
  }
}
post COPY & PASTE proof of successful test using code template from above
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Reply With Quote
  #5 (permalink)  
Old 12-04-11, 13:30
ordbas11 ordbas11 is offline
Registered User
 
Join Date: Dec 2011
Posts: 6
Where do I do this--Change the line below "DriverManager.getConnection" to match your environment to
independently verify network connectivity.

In the command prompt?
Reply With Quote
  #6 (permalink)  
Old 12-04-11, 14:25
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 6,415
Code:
bcm@bcm-laptop:~$ cat Conn.java
import java.sql.*;
class Conn {
  public static void main (String[] args) throws Exception
  {
   Class.forName ("oracle.jdbc.OracleDriver");

   Connection conn = DriverManager.getConnection
     ("jdbc:oracle:thin:@//localhost:1521/v112", "scott", "tiger");
                        // @//machineName:port/SID,   userid,  password
   try {
     Statement stmt = conn.createStatement();
     try {
       ResultSet rset = stmt.executeQuery("select BANNER from SYS.V_$VERSION");
       try {
         while (rset.next())
           System.out.println (rset.getString(1));   // Print col 1
       } 
       finally {
          try { rset.close(); } catch (Exception ignore) {}
       }
     } 
     finally {
       try { stmt.close(); } catch (Exception ignore) {}
     }
   } 
   finally {
     try { conn.close(); } catch (Exception ignore) {}
   }
  }
}
bcm@bcm-laptop:~$ javac Conn.java
bcm@bcm-laptop:~$ export CLASSPATH=/u01/app/oracle/product/11.2.0/dbhome_1/owb/wf/lib/ojdbc14.jar:.
bcm@bcm-laptop:~$ java Conn
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE	11.2.0.1.0	Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
bcm@bcm-laptop:~$
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Reply With Quote
  #7 (permalink)  
Old 12-04-11, 15:13
ordbas11 ordbas11 is offline
Registered User
 
Join Date: Dec 2011
Posts: 6
I do not understand your response.
Reply With Quote
  #8 (permalink)  
Old 12-04-11, 16:16
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 6,415
>I do not understand your response.

what do you understand?
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Reply With Quote
  #9 (permalink)  
Old 12-04-11, 16:39
ordbas11 ordbas11 is offline
Registered User
 
Join Date: Dec 2011
Posts: 6
cat Conn.java--This is Unix Correct?

I installed Oracle on Windows 7
Reply With Quote
  #10 (permalink)  
Old 12-04-11, 16:46
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 6,415
>I installed Oracle on Windows 7
I showed Java source program file content, how to compile the source code & how run code.
You can use stand alone Java code to validate JDBC connectivity to your Oracle DB.
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Reply With Quote
  #11 (permalink)  
Old 12-04-11, 17:40
ordbas11 ordbas11 is offline
Registered User
 
Join Date: Dec 2011
Posts: 6
How do I do that
Reply With Quote
  #12 (permalink)  
Old 12-04-11, 17:45
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 6,415
>How do I do that
do what I did.
I showed all necessary actions
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On