Catalog database on Windows Server and target Database on Linux?? [message #233869] |
Fri, 27 April 2007 17:09  |
shaseeb
Messages: 113 Registered: April 2007 Location: Madison, WI
|
Senior Member |
|
|
Hi I'm a Jr. Oracle DBA,
I am required to setup a recovery catalog for our development database. The only thing that I don't understand is that the development database (Oracle10g R2) is running on RHEL 4 and the server that I have been provided to create the catalog database on, is on Windows 2003 Server. How do I do that? Don't they both have to be the same platforms? How is the catalog going to be updated when it is on a windows machine and the target database is on a Linux machine? How do I link the two?
Thank you
[Updated on: Fri, 27 April 2007 17:18] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Catalog database on Windows Server and target Database on Linux?? [message #234600 is a reply to message #233869] |
Wed, 02 May 2007 11:07   |
shaseeb
Messages: 113 Registered: April 2007 Location: Madison, WI
|
Senior Member |
|
|
I tried and this is what I got:
H:\>sqlplus "sys/password@fprcdev as sysdba"
SQL*Plus: Release 10.2.0.2.0 - Production on Wed May 2 11:01:12 2007
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor
Could it be the TNSnames file in the target database??
And after this I changed the tns entry to:
FPRCDEV =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = rh-development.fprc.ophth.wisc.edu)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = fprcdev)
)
)
and I still got the same error as above.
[Updated on: Wed, 02 May 2007 11:10] Report message to a moderator
|
|
|
|
Re: Catalog database on Windows Server and target Database on Linux?? [message #234603 is a reply to message #233869] |
Wed, 02 May 2007 11:24   |
shaseeb
Messages: 113 Registered: April 2007 Location: Madison, WI
|
Senior Member |
|
|
I checked if the FPRCDEV database is up:
[oracle@rh-development dbs]$ lsnrctl status
LSNRCTL for Linux: Version 10.2.0.3.0 - Production on 02-MAY-2007 10:44:30
Copyright (c) 1991, 2006, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LSNR_FPRCDEV
Version TNSLSNR for Linux: Version 10.2.0.3.0 - Production
Start Date 27-APR-2007 10:52:36
Uptime 4 days 23 hr. 51 min. 54 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /opt/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /opt/app/oracle/admin/FPRCDEV/logmuseum/oraclenet/lsnr_fprcdev.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
Services Summary...
Service "FPRCDEV.fprc.ophth.wisc.edu" has 2 instance(s).
Instance "FPRCDEV", status UNKNOWN, has 1 handler(s) for this service...
Instance "FPRCDEV", status READY, has 1 handler(s) for this service...Service "FPRCDEVXDB.fprc.ophth.wisc.edu" has 1 instance(s).
Instance "FPRCDEV", status READY, has 1 handler(s) for this service...
Service "FPRCDEV_XPT.fprc.ophth.wisc.edu" has 1 instance(s).
Instance "FPRCDEV", status READY, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
However, when I ran the same command from the Windows server I got:
LSNRCTL for 32-bit Windows: Version 10.2.0.2.0 - Production on 02-MAY-2007 11:13:59
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=japan.fprc.ophth.wisc.edu)(PORT=1521)(QUEUESIZE=256)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.2.0 - Production
Start Date 30-APR-2007 21:52:26
Uptime 1 days 13 hr. 21 min. 34 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File D:\oracle\product\10.2.0\db_1\network\admin\listener.ora
Listener Log File D:\oracle\logarch\oraclenet\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=japan.fprc.ophth.wisc.edu)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
Services Summary...
Service "FPRCCATXDB.japan.fprc.ophth.wisc.edu" has 1 instance(s).
Instance "FPRCCAT", status READY, has 1 handler(s) for this service...
Service "FPRCCAT_XPT.japan.fprc.ophth.wisc.edu" has 1 instance(s).
Instance "FPRCCAT", status READY, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "fprccat.japan.fprc.ophth.wisc.edu" has 2 instance(s).
Instance "FPRCCAT", status READY, has 1 handler(s) for this service...
Instance "fprccat", status UNKNOWN, has 1 handler(s) for this service...
Service "fprcdev.rh-development.fprc.ophth.wisc.edu" has 1 instance(s).
Instance "fprcdev", status UNKNOWN, has 1 handler(s) for this service...Service "rctest.japan.fprc.ophth.wisc.edu" has 2 instance(s).
Instance "rctest", status UNKNOWN, has 1 handler(s) for this service...
Instance "rctest", status READY, has 1 handler(s) for this service...
Service "rctestXDB.japan.fprc.ophth.wisc.edu" has 1 instance(s).
Instance "rctest", status READY, has 1 handler(s) for this service...
Service "rctest_XPT.japan.fprc.ophth.wisc.edu" has 1 instance(s).
Instance "rctest", status READY, has 1 handler(s) for this service...
Service "tg4msql" has 1 instance(s).
Instance "tg4msql", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
Here are the contents of my listener.ora on the Windows side:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = japan.fprc.ophth.wisc.edu)(PORT = 1521)(QUEUESIZE = 256))
(ADDRESS = (PROTOCOL = TCP)(HOST = rh-development.fprc.ophth.wisc.edu)(PORT = 1521)(QUEUESIZE = 256))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
)
(SID_DESC =
(SDU = 32768)
(GLOBAL_DBNAME = rctest.japan.fprc.ophth.wisc.edu)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(SID_NAME = rctest)
)
(SID_DESC =
(SDU = 32768)
(GLOBAL_DBNAME = fprccat.japan.fprc.ophth.wisc.edu)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(SID_NAME = fprccat)
)
(SID_DESC =
(SDU = 32768)
(GLOBAL_DBNAME = fprcdev.rh-development.fprc.ophth.wisc.edu)
(ORACLE_HOME = /opt/app/oracle/product/10.2.0/db_1)
(SID_NAME = fprcdev)
)
(SID_DESC =
(SID_NAME = tg4msql)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(PROGRAM = tg4msql)
)
)
LOG_DIRECTORY_LISTENER = D:\oracle\logarch\oraclenet
LOG_FILE_LISTENER = listener.log
|
|
|
Re: Catalog database on Windows Server and target Database on Linux?? [message #234606 is a reply to message #234603] |
Wed, 02 May 2007 11:35   |
 |
Mahesh Rajendran
Messages: 10708 Registered: March 2002 Location: oracleDocoVille
|
Senior Member Account Moderator |
|
|
>>I checked if the FPRCDEV database is up
You checked the listener.
Not the database.
Please not that, when you throw TOO MUCH OF unwanted garbage information, it will really confuse us over the other end.
You have similar entries all over.
Restart both the datbases.
Comment all entries in both sqlnet.ora and try again.
THis is very very simple.
Target database:
See whether database is up.
See listener is up.
Check whether you created the passwordfile correctly.
CHeck remote_login_passwordfile in target initsid.ora/spfile.
Check wheter you can talk to target database ( from local) using
tnsservervice.
sqlplus "sys/pass@yourservice as sysdba"
Try again from remote node (say your RMAN NODE).
Do the same for your RMAN database(node).
Check whether you can establish Sqlplus connections as SYS (from RMAN node to Target db).
Regarding the Privs,
You can worry about that later (when you are creating the repository. First try to establish the connectivity.
[Updated on: Wed, 02 May 2007 11:54] Report message to a moderator
|
|
|
|
|
Re: Catalog database on Windows Server and target Database on Linux?? [message #234651 is a reply to message #233869] |
Wed, 02 May 2007 14:25   |
shaseeb
Messages: 113 Registered: April 2007 Location: Madison, WI
|
Senior Member |
|
|
I apologize. When I checked that the database is up I actually connected to it like this:
[oracle@rh-development admin]$ sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.3.0 - Production on Wed May 2 11:05:41 2007
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining Scoring Engine options
SQL>
Restart both the datbases - done
Comment all entries in both sqlnet.ora and try again - done
THis is very very simple.
Target database:
See whether database is up - yes
See listener is up - yes
>>Check whether you created the passwordfile correctly.
The command that I gave to create the password file was:
orapwd file=orapwFPRCDEV password=<password> and then I gave it the chmod 4640 privs. >>
>>CHeck remote_login_passwordfile in target initsid.ora/spfile.
SQL> show parameter pass
NAME TYPE VALUE
------------------------------ -------------- -------------
remote_login_passwordfile string EXCLUSIVE
>>Check wheter you can talk to target database ( from local) using
tnsservervice.
Commands are running on the Target(FPRCDEV-Linux) database:
[oracle@rh-development pfile]$ tnsping fprcdev
TNS Ping Utility for Linux: Version 10.2.0.3.0 - Production on 02-MAY-2007 13:35:30
Copyright (c) 1997, 2006, Oracle. All rights reserved.
Used parameter files:
/opt/app/oracle/product/10.2.0/db_1/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = rh-development.fprc.ophth.wisc.edu)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = FPRCDEV.fprc.ophth.wisc.edu)))
OK (0 msec)
[oracle@rh-development pfile]$ sqlplus "sys/password@fprcdev as sysdba"
SQL*Plus: Release 10.2.0.3.0 - Production on Wed May 2 13:36:17 2007
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining Scoring Engine options
>>Do the same for your RMAN database(node).
Check whether you can establish Sqlplus connections as SYS (from RMAN node to Target db).
So I can connect to the target database from the target database server. BUT when I try to connect to the TARGET database from the catalog (RMAN Node-Windows) then I get the following error:
H:\>tnsping fprcdev
TNS Ping Utility for 32-bit Windows: Version 10.2.0.2.0 - Production on 02-MAY-2007 14:04:57
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
D:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = rh-development.fprc.ophth.wisc.edu)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = fprcdev)))
OK (20 msec)
H:\>set ORACLE_SID=frpcdev
H:\>sqlplus "sys/password@fprcdev as sysdba"
SQL*Plus: Release 10.2.0.2.0 - Production on Wed May 2 14:08:32 2007
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor
So basically, I can connect to each database from their own server, But when I try to connect to the target from catalog or vice versa I get the TNS error.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|