ORA-17628: error Oracle 19505 returned by remote Oracle - Dup Active Server
Hi all
I'm doing a duplicate RMAN of a 11.2.0.4 database to another host on a different IP address.
Goal
SQL> select * from v$version; BANNER -------------------------------------------------------------------------------- Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
Auxiliary (nomount)
SQL> select * from v$version; BANNER -------------------------------------------------------------------------------- Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
I've added an entry static listener to the file on the server to THE listener and start the instance in nomount.
(SID_LIST = (SID_DESC = (GLOBAL_DBNAME = IST_11G) (ORACLE_HOME = /devdb3/u01b/app/oracle/product/11.2.0.4) (SID_NAME = IST_11G) )
TNSNAMES on the server to THE:
points to the TARGET server:
IST_11G_192 = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.48)(PORT = 1521))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = IST_11G)(UR=A)))
the server pointing to THE
IST_11G = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.21.64.72)(PORT = 1521))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = IST_11G)(UR=A)))
TNSNAMES on the TARGET server:
IST_11G_NEW = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.21.64.72)(PORT = 1521))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = IST_11G)(UR=A)))
instance pFile to THE:
Using parameters in Server pfile /devdb3/u01b/app/oracle/product/11.2.0.4/dbs/initIST_11G.ora-side
Parameters of the system with default values:
db_name = "IST_11G".
I have sftp file password above and named correctly.
Check the connections
--from target $ sqlplus sys/xxx@IST_11G_NEW as sysdba SQL*Plus: Release 11.2.0.4.0 Production on Tue Jun 30 08:32:10 2015 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL>
Since in THE
$ sqlplus sys/xxx@IST_11G_192 as sysdba
SQL * more: Release 11.2.0.4.0 Production on Mar 30 08:32:32 June 2015
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options
SQL >
So I checked that I have two means of connection, my at THE start and I can connect.
Here's my RMAN command (Note: the TARGET servers and have the same host name, don't ask...) "This is why we use the IP address in the TNSNAMES):
connection:
rman target sys/xxx@IST_11G_192 auxiliary sys/xxx@IST_11G | tee /home/oracle/IST_11G_duplicate.log
run { duplicate target database to IST_11G from active database NOFILENAMECHECK spfile set DB_FILE_NAME_CONVERT = '/devdb3/u01/oradata/IST_11G','/devdb3/u02d/oradata/IST_11G','/devdb3/u02/oradata/IST_11G','/devdb3/u02d/oradata/IST_11G' set LOG_FILE_NAME_CONVERT = '/devdb3/u01/oradata/IST_11G/','/devdb3/u03r/IST_11G_DEVDB3/' set control_files = '/devdb3/u03r/IST_11G_DEVDB3/controlfile/IST_11G_ctl1.ctl', '/devdb3/u04r/IST_11G_DEVDB3/controlfile/IST_11G_ctl2.ctl' set audit_file_dest = '/devdb3/u01b/app/oracle/product/11.2.0.4/rdbms/audit/' set diagnostic_dest = '/devdb3/u01b/app/oracle/' set log_archive_dest = '/devdb3/u05f/fast_recovery/IST_11G/archivelogs/' set MEMORY_MAX_TARGET='1G' set MEMORY_TARGET='1G'; }
$ rman target sys/xxx@IST_11G_192 auxiliary sys/xxx@IST_11G | tee /home/oracle/IST_11G_duplicate.log Recovery Manager: Release 11.2.0.4.0 - Production on Tue Jun 30 08:37:02 2015 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. connected to target database: IST_11G (DBID=525645852) connected to auxiliary database: IST_11G (not mounted) RMAN> run 2> { 3> duplicate target database to IST_11G from active database NOFILENAMECHECK spfile 4> 5> 6> set DB_FILE_NAME_CONVERT = '/devdb3/u01/oradata/IST_11G','/devdb3/u02d/oradata/IST_11G','/devdb3/u02/oradata/IST_11G','/devdb3/u02d/oradata/IST_11G' set LOG_FILE_NAME_CONVERT = '/devdb3/u01/oradata/IST_11G/','/devdb3/u03r/IST_11G_DEVDB3/' set control_files = '/devdb3/u03r/IST_11G_DEVDB3/controlfile/IST_11G_ctl1.ctl', '/devdb3/u04r/IST_11G_DEVDB3/controlfile/IST_11G_ctl2.ctl' 7> set audit_file_dest = '/devdb3/u01b/app/oracle/product/11.2.0.4/rdbms/audit/' 8> set diagnostic_dest = '/devdb3/u01b/app/oracle/' set log_archive_dest = '/devdb3/u05f/fast_recovery/IST_11G/archivelogs/' 9> set MEMORY_MAX_TARGET='1G' set MEMORY_TARGET='1G'; 10> } 11> 12> Starting Duplicate Db at Jun 30 2015 08:37:10 using target database control file instead of recovery catalog allocated channel: ORA_AUX_DISK_1 channel ORA_AUX_DISK_1: SID=216 device type=DISK contents of Memory Script: { backup as copy reuse targetfile '/devdb3/oracle/app/oracle/product/11.2.0.4/dbs/spfileIST_11G.ora' auxiliary format '/devdb3/u01b/app/oracle/product/11.2.0.4/dbs/spfileIST_11G.ora' ; sql clone "alter system set spfile= ''/devdb3/u01b/app/oracle/product/11.2.0.4/dbs/spfileIST_11G.ora''"; } executing Memory Script Starting backup at Jun 30 2015 08:37:11 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=365 device type=DISK RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of Duplicate Db command at 06/30/2015 08:37:12 RMAN-05501: aborting duplication of target database RMAN-03015: error occurred in stored script Memory Script RMAN-03009: failure of backup command on ORA_DISK_1 channel at 06/30/2015 08:37:12 ORA-17628: Oracle error 19505 returned by remote Oracle server RMAN>
I can't understand why I'm getting ORA-17628: error Oracle 19505 returned by remote Oracle server.
So, I try one of the commands connecting memory se scripts to check if was not a problem with my execution block.
backup copy reuse targetfile ' / devdb3/oracle/app/oracle/product/11.2.0.4/dbs/spfileIST_11G.ora' auxiliary format ' / devdb3/u01b/app/oracle/product/11.2.0.4/dbs/spfileIST_11G.ora';
$ rman target sys/sys_IST_11G@IST_11G_192 auxiliary sys/sys_IST_11G@IST_11G | tee /home/oracle/IST_11G_duplicate.log Recovery Manager: Release 11.2.0.4.0 - Production on Tue Jun 30 08:41:00 2015 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. connected to target database: IST_11G (DBID=525645852) connected to auxiliary database: IST_11G (not mounted) RMAN> backup as copy reuse targetfile '/devdb3/oracle/app/oracle/product/11.2.0.4/dbs/spfileIST_11G.ora' auxiliary format '/devdb3/u01b/app/oracle/product/11.2.0.4/dbs/spfileIST_11G.ora'; Starting backup at Jun 30 2015 08:41:15 using target database control file instead of recovery catalog allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=365 device type=DISK RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03009: failure of backup command on ORA_DISK_1 channel at 06/30/2015 08:41:17 ORA-17628: Oracle error 19505 returned by remote Oracle server RMAN>
Same mistake. Nothing is written for the journal of alerts. IM starting to pull the hair is left on my head out and people start screaming for this database. I could go back to datapump but I want to understand this. Any help would be very much appreciated.
Thank you.
Yes, although this:
connected to target database: IST_11G (DBID = 525645852)
connected to the auxiliary database: IST_11G (unassembled)
can say you that RMAN you connected the two separate databases, the process, instances should do research each other using tnsnames file entries. Thus, incorrect tnsnames entries can have one instance pointing to itself.
Hemant K Collette
Tags: Database
Similar Questions
-
iBot errors: Oracle BI presentation server error: access denied
Hi all
I'm trying to configure the iBot for the first time in our dev instance.
I get the error next can someone ' a please guide me to solve this problem. I login as an administrator during the creation of the iBot.
pointers are highly appreciated.
Thank you
Vijay
+++ ThreadID: 70 c: 16:46:13.583 2011-06-08
[nQSError: 77006] Oracle BI presentation server error: access denied.
Error codes: OKZJNLK4
+++ ThreadID: 70 c: 16:46:13.583 2011-06-08
iBotID: / users/administrator/_ibots/test
... Retry loop main iBot.
+++ ThreadID: 70 c: 16:46:13.583 2011-06-08
... Sleep for 5 seconds.
+++ ThreadID: 70 c: 16:46:18.583 2011-06-08
[nQSError: 77006] Oracle BI presentation server error: access denied.
Error codes: OKZJNLK4
+++ ThreadID: 70 c: 16:46:18.583 2011-06-08
iBotID: / users/administrator/_ibots/test
... Retry loop main iBot.
+++ ThreadID: 70 c: 16:46:18.583 2011-06-08
... Sleep for 8 seconds.
+++ ThreadID: 70 c: 16:46:26.583 2011-06-08
[nQSError: 77006] Oracle BI presentation server error: access denied.
Error codes: OKZJNLK4
+++ ThreadID: 70 c: 16:46:26.583 2011-06-08
iBotID: / users/administrator/_ibots/test
Exceeded number of retries of request.Assign Points if answered your query, Mark also question as answered...
See you soon
Ankit -
Error ORA-28500, DBLink Oracle to Sql Server
Hi guys, when I query a remote table via a db link get "ORA-28500: connection between ORACLE and a non-Oracle system returned this message:" and the message after it's juice a plain square brackets "[]" "."
SQL > select *.
2 of [email protected];
of [email protected]
*
ERROR on line 2:
ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:
[
SQL >
I want to know where I can get error that she supposed to track the error ORA-28500 or what means this error?
Thank you...This error with the simple opening bracket is commonly indicating a problem of NLS.
Unfortunately, you specify which ODBC driver manager and ODBC driver you are using and on what platform you have installed the bridge, so I can only guess...
Could you please add 2 to your gateway gateway config file settings, and then try again from the select in a new SQL * Plus the term:
HS_NLS_NCHAR = UCS2
HS_LANGUAGE = AMERICAN_AMERICA.we8iso8859P1-Klaus
-
ORA-12541: error listener TNS:no when remote desktop connection
Dear all,
I installed Oracle 11 GR 2 on your windows desktop. I am able to connect to SQL from the command prompt but also using SQL Developer. However, when I try to connect to this instance from another post after adding the details in TNSNAMES.ora on the desktop remotely, I get the error: "ORA-12541: TNS:no listener.
Can you please guide me if there are all the additional steps required to connect to the database from a remote office.
Best regards
ChandraDid you know your IP host address is?
(HOST = 172.18.28.192) -
Paste here please
ipconfig
Can you change IP to IP localhost host and restart the LISTENER with
lsnrctl stop lsnrctl start
Concerning
Mr. Mahir Quluzade
www.Mahir-quluzade.com -
ORA-12560 error adapter, connect to the remote database
I started to learn Oracle for the last week or two, and certainly my installation process was a bit special. In the end, I try JBoss to connect to the database, but for now, I just want to try a simpler installation.
I use Instant Client on Windows 7 with Oracle 11.2 running on a RedHat 5 virtual machine. When I connect with the following...
sqlplus sys@domain:1521/sid
It crashes, it's finally time. When I use...
sqlplus sys as sysdba @domaine: 1521/sid
It asks for my password, then gives me the error of the adapter, after I get it.
My listener status is:
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on February 21, 2012 16:27:16
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start date February 20, 2012 15:28:54
Operating time 1 days 0 h 58 min 21 sec
Draw level off
Security ON: OS Local Authentication
SNMP OFF
Parameter Listener of the /var/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora file
The listener log file /var/app/Oracle/diag/tnslsnr/SSC-redhat64/listener/alert/log.XML
Summary of endpoints listening...
(DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1521)))
(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=domain) (PORT = 1521)))
Summary of services...
"Sid" service has 1 instance (s).
"Sid" instance, status UNKNOWN, has 1 operation for this service...
Service 'sid.domain' has 1 instance (s).
"Sid" instance, State LOAN, has 1 operation for this service...
Service 'sidXDB.domain' has 1 instance (s).
"Sid" instance, State LOAN, has 1 operation for this service...
The command completed successfully
My main reason to use Instant Client is simply to test the connection to the database remotely. What other information should I post? Any help would be much appreciated.>
ORA-12504: TNS:listener did not have the SERVICE_NAME in CONNECT_DATA
Try with quotes around the part of login id, for example
C:\>sqlplus user@'hostname/test'
-
RMAN-03009: ORA-17628: all duplicate Active
OS - Linux 64
Oracle 11.2.0.2.0
Database duplication "ssdev' to 'dupli' on the same server...
connected to target database: SSDEV (DBID = 2209227163)
connected to the auxiliary database: DUPLI (unassembled)
RMAN > database duplicated dupli nofilenamecheck of the active database.
From 1st March 11 Db double
using the control file of the target instead of recovery catalog database
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID = 134 type device = DISK
content of Script memory:
{
clone of SQL "create spfile from memory";
.....
...
...
then I get these...
From 1st March 11 backup
using channel ORA_DISK_1
channel ORA_DISK_1: from data file copy
Enter a number of file datafile = 00005 name=/u01/app/oracle/oradata/ssdev/apex01.dbf
RMAN-03009: failure of the backup command on the channel ORA_DISK_1 at 01/03/2011 15:58:47
ORA-17628: error Oracle 19505 returned by remote Oracle Server
continue other job steps, not a not working will not re-run
channel ORA_DISK_1: from data file copy
Enter a number of file datafile = name=/u01/app/oracle/oradata/ssdev/users01.dbf 00004
Ssdev trace file
------
minact-SNA-status of master: Greek-gmin scn:0 x 0000.00000000 - scn:0 x 0000.00000000 gcalc - scn:0 x 0000.00000000
2011-03-01 15:01:46.068
minact-SNA-status of master: Greek-gmin scn:0 x 0003 .83c1a2c2 - 0003 .83c1a2c2 gcalc - 0003 .83c1a2c2 x scn:0 x scn:0
2011-03-01 15:06:47.200
minact-SNA-status of master: Greek-gmin scn:0 x 0003 .83c1a3e3 - 0003 .83c1a3e3 gcalc - 0003 .83c1a3e3 x scn:0 x scn:0
minact-SNA-status of master: Greek-gmin scn:0 x 0003 .83c1a4e7 - 0003 .83c1a4e7 gcalc - 0003 .83c1a4e7 x scn:0 x scn:0
-------
Nothing in the alert log...db_file_name_convert = (' / u01/app/oracle/oradata/ssdev '.' / u01/app/oracle/oradata/dupli ')
Is it a '. '. (DOT) or a ',' (COMMA) between the two railways?
Hemant K Collette
-
Hello
on 10 gr 2 on WIN 2003 server:
And then:C:\>sqlplus repadmin/***@CEL2.WORLD SQL*Plus: Release 10.2.0.4.0 - Production on Tue Jun 22 09:54:18 2010 Copyright (c) 1982, 2007, Oracle. All Rights Reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options
Thanks for the help.CONNECT repadmin/******@CEL1.WORLD BEGIN DBMS_REPCAT.ADD_MASTER_DATABASE ( gname => 'REPG', master => 'CEL2.WORLD', use_existing_objects => TRUE, copy_rows => FALSE, propagation_mode => 'ASYNCHRONOUS'); END; / BEGIN * ERROR at line 1: ORA-04052: error occurred when looking up remote object [email protected] ORA-00604: error occurred at recursive SQL level 2 ORA-12545: Connect failed because target host or object does not exist ORA-06512: at "SYS.DBMS_REPCAT_UTL", line 4271 ORA-06512: at "SYS.DBMS_REPCAT_MAS", line 2156 ORA-06512: at "SYS.DBMS_REPCAT", line 146 ORA-06512: at line 2
connect to the remote database as sys and
SQL > grant execute on sys. DBMS_REPCAT repadmin;
-
Duplicate database RMAN 11 GR 2 ORA-17627 ORA-01017 RMAN-03009 ORA-17628
Hello
I'm getting ORA-17627: ORA-01017: name of user and password invalid. connection refused when using the RMAN duplicate on the same host using the account Oracle DBA. The system is Linux Oracle and Oracle 11.2.0.1 5.5
I tested the connectivity and passwords and everything works fine. What could be the reason of this problem please?
Details below:
Thank you.
H3. Summary of the solution:
A big thank you to all who responded! The problem is solved finally :-)
The ORA-17627: ORA-01017 has been corrected using the connection string to connect to the target database, instead of target rman / in the command prompt
However, there was still another question:$ rman RMAN> connect target sys/password@orcl RMAN> connect auxiliary sys/password@clonedb RMAN> duplicate target database to clonedb from active database;
The alert.log to the auxiliary database (clonedb) shows:channel ORA_DISK_1: starting datafile copy input datafile file number=00001 name=+DATA/orcl/datafile/system.256.737564331 RMAN-03009: failure of backup command on ORA_DISK_1 channel at 12/29/2010 14:40:21 ORA-17628: Oracle error 19505 returned by remote Oracle server continuing other job steps, job failed will not be re-run
Errors in the /u01/app/oracle/diag/rdbms/clonedb/clonedb/trace/clonedb_ora_6129.trc file:
ORA-19505: impossible to identify the file ' / scratch/oradata/clonedb/datafile/orcl/datafile/system.256.737564331 '.
ORA-27040: create file error, cannot create the file
Linux-x86_64 error: 2: no such file or directory
I fixed the problem by changing the following text in the settings of the clonedb instance file:
* .db_file_name_convert =('+Data/ORCL/','/Scratch/oradata/clonedb/')
* .log_file_name_convert =('+Data/ORCL/onlinelog/','/Scratch/oradata/clonedb/logfile/')
Thank you!
H3. Problem:
H3. Configuration[orcl@ol55]$ rman target / Recovery Manager: Release 11.2.0.1.0 - Production on Tue Dec 28 21:40:25 2010 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. connected to target database: ORCL (DBID=1265345286) RMAN> connect auxiliary sys/test@clonedb connected to auxiliary database: CLONEDB (not mounted) RMAN> duplicate target database to clonedb from active database; Starting Duplicate Db at 28-DEC-10 using target database control file instead of recovery catalog allocated channel: ORA_AUX_DISK_1 channel ORA_AUX_DISK_1: SID=19 device type=DISK contents of Memory Script: { sql clone "create spfile from memory"; } executing Memory Script sql statement: create spfile from memory contents of Memory Script: { shutdown clone immediate; startup clone nomount; } executing Memory Script Oracle instance shut down connected to auxiliary database (not started) Oracle instance started Total System Global Area 839282688 bytes Fixed Size 2217992 bytes Variable Size 645924856 bytes Database Buffers 188743680 bytes Redo Buffers 2396160 bytes contents of Memory Script: { sql clone "alter system set db_name = ''ORCL'' comment= ''Modified by RMAN duplicate'' scope=spfile"; sql clone "alter system set db_unique_name = ''CLONEDB'' comment= ''Modified by RMAN duplicate'' scope=spfile"; shutdown clone immediate; startup clone force nomount backup as copy current controlfile auxiliary format '/scratch/oradata/clonedb/controlfile/control01.ctl'; restore clone controlfile to '/scratch/oradata/clonedb/controlfile/control02.ctl' from '/scratch/oradata/clonedb/controlfile/control01.ctl'; alter clone database mount; } executing Memory Script sql statement: alter system set db_name = ''ORCL'' comment= ''Modified by RMAN duplicate'' scope=spfile sql statement: alter system set db_unique_name = ''CLONEDB'' comment= ''Modified by RMAN duplicate'' scope=spfile Oracle instance shut down Oracle instance started Total System Global Area 839282688 bytes Fixed Size 2217992 bytes Variable Size 645924856 bytes Database Buffers 188743680 bytes Redo Buffers 2396160 bytes Starting backup at 28-DEC-10 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=35 device type=DISK channel ORA_DISK_1: starting datafile copy copying current control file RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of Duplicate Db command at 12/28/2010 21:42:08 RMAN-03015: error occurred in stored script Memory Script RMAN-03009: failure of backup command on ORA_DISK_1 channel at 12/28/2010 21:42:08 ORA-17629: Cannot connect to the remote database server ORA-17627: ORA-01017: invalid username/password; logon denied ORA-17629: Cannot connect to the remote database server
H4. Listener and Tnsnames
H3. Note: (UR = A) clause in tnsnames.ora is intended to operate with a dynamically
Manager recorded for the SERVICE_NAME against SID is preferable. (ID 362656.1)
H4. pFile and spfile$ cat /u01/app/oracle/product/11.2.0/grid/network/admin/listener.ora LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = ol55.example.com)(PORT = 1521)) ) ) SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (ORACLE_HOME= /u01/app/oracle/product/11.2.0/db) (SID_NAME = clonedb) (GLOBAL_DBNAME= clonedb.example.com) ) ) ADR_BASE_LISTENER = /u01/app/oracle ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER = ON $ cat tnsnames.ora # tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0/db/network/admin/tnsnames.ora # Generated by Oracle configuration tools. CLONEDB = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = ol55.example.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = clonedb.example.com) (UR = A) ) ) $ lsnrctl status LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 28-DEC-2010 21:35:54 Copyright (c) 1991, 2009, Oracle. All rights reserved. Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521)) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production Start Date 26-DEC-2010 02:59:35 Uptime 2 days 18 hr. 36 min. 18 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /u01/app/oracle/product/11.2.0/grid/network/admin/listener.ora Listener Log File /u01/app/oracle/diag/tnslsnr/ol55/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ol55.example.com)(PORT=1521))) Services Summary... Service "+ASM" has 1 instance(s). Instance "+ASM", status READY, has 1 handler(s) for this service... Service "clonedb.example.com" has 2 instance(s). Instance "clonedb", status UNKNOWN, has 1 handler(s) for this service... Instance "clonedb", status BLOCKED, has 1 handler(s) for this service... Service "orcl.example.com" has 1 instance(s). Instance "orcl", status READY, has 1 handler(s) for this service... Service "orclXDB.example.com" has 1 instance(s). Instance "orcl", status READY, has 1 handler(s) for this service... Service "test.example.com" has 1 instance(s). Instance "test", status READY, has 1 handler(s) for this service... Service "testXDB.example.com" has 1 instance(s). Instance "test", status READY, has 1 handler(s) for this service... The command completed successfully
H4. Password file and the connection test$ cat initclonedb.ora clonedb.__db_cache_size=192937984 clonedb.__java_pool_size=4194304 clonedb.__large_pool_size=4194304 clonedb.__oracle_base='/u01/app/oracle' clonedb.__pga_aggregate_target=339738624 clonedb.__sga_target=503316480 clonedb.__shared_io_pool_size=0 clonedb.__shared_pool_size=293601280 clonedb.__streams_pool_size=0 *.audit_file_dest='/u01/app/oracle/admin/clonedb/adump' *.audit_trail='db' *.backup_tape_io_slaves=TRUE *.compatible='11.2.0.0.0' *.control_files='/scratch/oradata/clonedb/controlfile/control01.ctl','/scratch/oradata/clonedb/controlfile/control02.ctl' *.db_block_checking='full' *.db_block_checksum='full' *.db_block_size=8192 *.db_create_file_dest='/scratch/oradata/clonedb' *.db_domain='example.com' *.db_name='clonedb' *.db_recovery_file_dest='+FRA' *.db_recovery_file_dest_size=12884901888 *.log_archive_dest='/scratch/oradata/clonedb/archivelog' *.diagnostic_dest='/u01/app/oracle' *.dispatchers='(PROTOCOL=TCP) (SERVICE=clonedbXDB)' *.memory_target=843055104 *.open_cursors=300 *.processes=150 *.remote_login_passwordfile='EXCLUSIVE' *.undo_tablespace='UNDOTBS1' *.db_file_name_convert=('+DATA','/scratch/oradata/clonedb/datafile') *.log_file_name_convert=('+DATA','/scratch/oradata/clonedb/logifle') $ sqlplus / as sysdba SQL*Plus: Release 11.2.0.1.0 Production on Tue Dec 28 21:26:41 2010 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to an idle instance. SQL> startup nomount pfile='$ORACLE_HOME/dbs/initclonedb.ora' ORACLE instance started. Total System Global Area 839282688 bytes Fixed Size 2217992 bytes Variable Size 641730552 bytes Database Buffers 192937984 bytes Redo Buffers 2396160 bytes SQL>
Published by: Dude on December 29, 2010 06:37$ orapwd file=$ORACLE_HOME/dbs/orapwclonedb password='test' $ sqlplus 'sys/test@clonedb as sysdba' SQL*Plus: Release 11.2.0.1.0 Production on Tue Dec 28 19:58:14 2010 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to an idle instance.
Hi guy,
Please configure the tnsnames and auditor of the target and auxiliary.
That set the script to use OIC to connect in both instances like this:connect target sys/test@orcl
connect auxiliary sys/test@clonedbPlease after the release.
Kind regards
Tycho -
Why I get an ORA-04052 error when I try to compile a procedure?
Hello
The following procedure I get an ORA-04052 error when I try to compile the following procedure.
I use the [email protected] link. Commented compiles it procedure for other links of database used in the cursor, including the one to the right of the code 'prod.world '.CREATE OR REPLACE PROCEDURE APPS.Find_String ( pin_referenced_name IN dba_dependencies.referenced_name%TYPE) IS cursor cur_get_dependancy is SELECT distinct owner, name, type FROM [email protected] -- prod.world WHERE lower(referenced_name) = lower(pin_referenced_name) --'ftbv_salesrep_all_1d' AND referenced_type <> 'SYNONYM' AND owner <> 'SYS' order by name; v_owner varchar2(40); v_name varchar2(50); v_type varchar2(40); BEGIN dbms_output.put_line(upper(pin_referenced_name)||' is found in the following objects.'); dbms_output.put_line(' '); dbms_output.put_line(RPAD('OWNER', 30, ' ')||RPAD('NAME', 60, ' ')||RPAD('OBJECT TYPE', 30, ' ')); dbms_output.put_line('-------------------------------------------------------------------------------------------------------------------'); FOR i IN cur_get_dependancy LOOP v_owner := RPAD(i.owner, 30, ' '); v_name := RPAD(i.name, 45, ' '); v_type := RPAD(i.type, 30, ' '); dbms_output.put_line(v_owner ||v_name|| v_type); END LOOP; END find_string;
What is even more strange is that I took the SELECT statement
the procedure and he ran on the command line by using the link to @pinp.world, the SQL statement is fine. But when I tried to compile the procedure above to this exact same SQL query with the same exact link I get the following string of errors.SELECT distinct owner, name, type FROM [email protected] -- prod.world WHERE lower(referenced_name) = lower(pin_referenced_name) --'ftbv_salesrep_all_1d' AND referenced_type <> 'SYNONYM' AND owner <> 'SYS' order by name;
How the link can work very well in a regular SQL but then cause an error when its code compiled in that otherwise compile correctly when you use any link, or even just a simple database. Does anyone have any suggestions?ORA-04052: error occurred when looking up remote object [email protected] ORA-00604: error occurred at recursive SQL level 1 ORA-02068: following severe error from PINP ORA-03113: end-of-file on communication channel
Hello
Good thounght, but no, there is no privilege SELECT ANY VIEW; SELECT ANY TABLE includes views and materilaized.
I suspect that the problem is something specific to the data dictionary. I have just connected as SYS and granted SELECT ANY TABLE to another user with minimum privileges, X. X, ALL_VIEWS included so all views dba_, including the dba_dependencies. However, X was still unable to dba_dependencies the query either in SQL * more or PL/SQL.
-
connection mysql and oracle ORA-28545: error diagnosed by Net8 when connecting to an agent
Hi all
I have Oracle 10.2.0.5 server and MySQL 5.3 on windows environment. all are 64-bit.
I want to connect to MySQL. I do the following
Configure Listner.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_2)
(= Extproc PROGRAM)
)
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_2)
(SID_NAME = ORCL)
)
(SID_DESC =
(SID_NAME = mysql)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_2)
(PROGRAM = HSODBC)
(ENVS = LD_LIBRARY_PATH = C:\oracle\product\10.2.0\db_2\LIB)
)
)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oradev.hct.org) (PORT = 1521))
)
Tnsnames.ora configuration
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oradev.hct.org) (PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC0))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
MySQL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST= 10.153.103.5) (PORT = 1521))
(CONNECT_DATA =
(SID = mysql)
)
(HS = OK)
)create file initodbc.ora in the folder hs
HS_FDS_CONNECT_INFO = mysql
HS_FDS_TRACE_LEVEL = OFF
Restart the listner
tnsping
C:\users\administrator > tnsping mysql
AMT Ping Utility for 64-bit Windows: Version 10.2.0.5.0 - Production 08-NOV-2
015 13:02:52Copyright (c) 1997, 2010, Oracle. All rights reserved.
Use settings files:
C:\oracle\product\10.2.0\db_2\network\admin\sqlnet.ora
TNSNAMES adapter used to resolve the alias
Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 10.153.103.5)
(PORT = 1521)) (CONNECT_DATA = (SID = mysql)) (HS=OK))
OK (0 msec)Create the connection odbc for Unicode
the test is successful
now, I create the dblink
create public mysql database link to connect to cssDBTeam identified by oracle using "mysql";
then try to select from a table inside the MySQL database
SQL > select * from appeal@mysql;
Select * from appeal@mysql
*
ERROR on line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
Cannot retrieve the text of the message NETWORK/NCR 65535
ORA-02063: preceding 2 lines of MYSQL
How could I solve this problem?
Thank you.
Hello
I realize that your problem is that 10.2 HSODBC was never focused on the Windows 64-bit platform and was only available on 32-bit Windows. You can not install the 32-bit on WIndows 64-bit HSODBC.
Your only option is to install 11.2 DG4ODBC on your platform Windows 64 - bit, or if you have a RDBMS 10.2 installed on another platform, then you could use HSODBC as part of this installation and connect from the RDBMS on Windows 64 - bit using the links in the database. HSODBC 10.2 software could not be installed as a stand-alone product and was only available as part of an RDBMS install.
Kind regards
Mike
-
ORA-04052: error occurred while the remote object by raising
Please help I m this error
ORA-00604: an error has occurred at the SQL level 1 recursive
ORA-04052: error occurred while the remote object by raising
ORA-01017: name of user and password invalid.
connection refused ORA-02063: preceding the line of LINK DBTom wrote:
Please help I m this error
ORA-01017: name of user and password invalid.
connection refused ORA-02063: preceding the line of LINK DBWell, what part of the name of user and password invalid needs to explain?
SY.
-
ERROR: ORACLE prepare error: ORA-00936: lack of expression
Hello
I am required to run the 'pass-through' Oracle SQL, to extract data from tables in the SAS for processing and handling. My code (attached) reads and writes (runs) but with zero records to test first. I can't get beyond the error to prepare.
The request is just like other queries that seem to work, but I can't get past this prepare error. I have no other access to individauls with an adequate knowledge of the PL SQL and as a last stop hoped others in the forum could quickly identify the source of the error.
Thank you very much in advance for any help.
Jeff
_______________________________________
1; *'; * « ; * / ; Quit; execution risk;
2 OPTIONS NUMPAGE = MIN;
3% LET _CLIENTTASKLABEL = % NRBQUOTE (rx_biplr_v3_2);
4% LET _EGTASKLABEL = % NRBQUOTE (rx_biplr_v3_2);
5% LET _CLIENTPROJECTNAME = %NRBQUOTE();
6% LET _SASPROGRAMFILE =;
7
8 ODS CLOSE SUBJECT;
NOTE: Some of your options or statements will not be managed with the Activex or Java Series devices. Chart by default for these
drivers may be different from other SAS/GRAPH device drivers. For more information, please contact Technical Support.
9 OPTIONS DEV = ACTIVEX;
10 EGHTML TEMP FILE NAME;
NOTE: Writing, body HTML (EGHTML) file: EGHTML
11 ODS HTML(ID=EGHTML) FILE = EGHTML ENCODING = 'utf - 8' STYLE = EGDefault.
11. STYLESHEET=(URL="file:///C:/program%20Files/SAS/shared%20Files/BIClientStyles/EGDefault.CSS")
11. ATTRIBUTES = ("http://www2.sas.com/codebase/graph/v91/sasgraph.exe"="CODE") NOGTITLE NOGFOOTNOTE GPATH = & sasworklocation
11.
12
gaccessible 13%;
14 /********************************************************/
15 * RX_BIPLR_V3. SAS;
16 /********************************************************/
17
18 dm 'journal clearly out; delete ";
19 linesize options = 120;
20 option obs = 0 NoReplace;
21
22 ****************************************************************************************;
23 * date reviewed programmer in WHICH WAS MADE;
24 *----- -------------- ------------ -----------------------------------------;
25 * 2005 creation of David Boyd program to the test population;
26 *;
27 * 06/02/2006 Ivon Jones changed to include the whole of the population;
28 *;
29 * 20/07/2006 Ivon Jones identified the holdout data elements;
30 * or inclusion in the consolidation with;
31 * Robin report;
32 *;
33 * 18/08/2006 Ivon Jones updated specific therapeutic Classes.
34 * 10 - 2009 J Shaf - changed to extract actual or potential of UBH bipolar Dx and medical claims.
35 ****************************************************************************************;
36
37
38
39 * % let allclmorgn = (', 'A'); / * claims origin code * /.
40% would let begdate ='01 SEP 2009;
41% let enddate = 30 SEP 2009 would be;
42% let q = %str(%');
43
44
45 data _null_;
46. call symput ("fdos", put (intnx ('month' ' and begdate "d,-27," starts"), date9.));
47 call symput ('ldos', put (intnx ('months', ' and enddate "d-0, 'end'" "), date9.));
48, run;
NOTE: DATA statement used (total duration of processes):
time real 0.01 seconds
2 the system SAS 11:44 Friday, October 30, 2009
time CPU 0.01 seconds
49
50
51
52 **************************************************************;
53 *? Data _null_ stage allows to create a macro variable to;
54 * year and month, based on the macro ldos variable in the data;
55 * step up? ;
56 **************************************************************;
57
58
59 data _null_;
If 60 months ("& ldos" d) < 10
61, then call symput ("yr_mo", compress (year ("& ldos" d) |)) '0' || months ("& ldos" d)));
62 other call symput ("yr_mo", compress (year ("& ldos" d) | months ("& ldos" d)));
63 to run;
NOTE: The numeric values were converted to character values in the locations given by: (Line): (Column).
61:39 61:64 62:39 62:57
NOTE: DATA statement used (total duration of processes):
time real 0.01 seconds
time processor 0.01 seconds
64
65 * make % & biplr_dx;
position 66% & begdate;
' 01 SEP 2009 would be
67% put & enddate;
30 SEP 2009 would be
68% put & fdos;
JUNE 1, 2007
69% put & ldos;
SEPTEMBER 30, 2009
70% put & q;
'
71
72
73 libname biplr ' / home/jshafi01/projects/adhoc/biplr_dprsn/data ';
NOTE: Libref BIPLR has been awarded with success as follows:
Engine: V9
Physical name: / home/jshafi01/projects/adhoc/biplr_dprsn/data
74 rosdwp libname = oracle user "& oracle_user." pass = "& oracle_pass." ' buffsize = 32767 path = "rosdwp"; "
NOTE: Libref ROSDWP has been awarded with success as follows:
Engine: ORACLE
Physical name: rosdwp
75
work.biplr_up_v1 76 data;
mbr_id length 77 attrib = $ 26;
78 the value biplr.biplr_ubh_med_v1;
79 to be performed;
NOTE: There were 0 read comments from the BIPLR data set. BIPLR_UBH_MED_V1.
NOTE: All data WORK. BIPLR_UP_V1 has 0 comments and variables 1.
NOTE: DATA statement used (total duration of processes):
time real 0.01 seconds
3 the system SAS 11:44 Friday, October 30, 2009
time processor 0.01 seconds
80
81 proc content;
82 to be performed;
NOTE: PROCEDURE used CONTENT (total duration of processes):
time real 0.03 seconds
time CPU 0.03 seconds
83
84 proc datasets
85 = rosdwp nolist library.
86. delete biplr_up_v1;
87 of quitting;
NOTE: The removal of ROSDWP. BIPLR_UP_V1 (memtype = DATA).
NOTE: PROCEDURE used DATASETS (time Total of processes):
time real 3.74 seconds
time CPU 0.03 seconds
88
89 proc datasets
90 = work nolist library.
copy 91 = rosdwp move;
92 select biplr_up_v1;
93 of quitting;
NOTE: Move WORK. BIPLR_UP_V1 to ROSDWP. BIPLR_UP_V1 (memtype = DATA).
NOTE: Variable labels SAS, formats and lengths are not written to the DBMS tables.
NOTE: There were 0 read comments from the WORKING data set. BIPLR_UP_V1.
NOTE: All the data ROSDWP. BIPLR_UP_V1 has 0 comments and variables 1.
NOTE: PROCEDURE used DATASETS (time Total of processes):
real 0.32 seconds
time CPU 0.04 seconds
94
95
96
97 *****************************************************************************;
98
99 * execute (commit) by rosdwp
100 ******************************************************************************;
101
102
103 proc SQL noprint.
104, connect to oracle as rosdwp (user = "" & oracle_user. "password =" "& oracle_pass ' buffsize = 32767 path ="rosdwp")
104. preserve_comments);
run 105 (alter session set nls_date_format = 'ddmonyyyy') by rosdwp;
CREATE table biplr_rx like 106
107 SELECT
mrb_id 108,
pcp_spc 109,
rx_date 110,
4 the system SAS 11:44 Friday, October 30, 2009
Mark 111,
generic, 112
113 ahfs_cd
ahfs_dsc 114,
lbl 115,
strngth 116,
UNT 117,
spc_tx_cls_cd 118,
119 spc_tx_cls_dsc,
GCN 120,
rx_num 121,
rx_ingrd 122,
rx_paid 123,
rx_cnt 124,
rx_qty 125,
rx_day 126
127 rosdwp CONNECTION
128 (SELECT
129, middle of the year. UNIQ_MBR_ID as mrb_id,
130 DB. PRVDR_SPCLTY_DESC as pcp_spc,
FCP 131. LAST_SRVC_DT as rx_date,
132 JJ. BRAND_NAME as mark,
133 JJ. GNRC_NAME as generic,
134 JJ. AHFS_THRPTC_CLS_CD as ahfs_cd,
DD 135. AHFS_THRPTC_CLS_DESC as ahfs_dsc,
136 JJ. LABEL_NAME as lbl,
137 JJ. STRNGTH_NUM as strngth
138 JJ. STRNGTH_UNIT_DESC as unt,
139 JJ. SPECF_THRPTC_CLS_CD as spc_tx_cls_cd,
140 DD. SPECF_THRPTC_CLS_DESC as spc_tx_cls_dsc,
141 JJ. GCN_NUM as gcn,
FCP 142. PRSCRPTN_NUM as rx_num,
SUM of 143 (FCP. INGRDNT_AMT) as rx_ingrd,
SUM of 144 (FCP. PD_AMT) as rx_paid,
$ 145 (FCP. UNIT_SRVC_CNT) as rx_cnt,
SUM of 146 (FCP. DSPNSD_QTY) as rx_qty,
SUM of 147 (FCP. DAY_SUPLY_CNT) as rx_day
148
149 PHRMCY_CLM_FACT pcf,
150 MBR_ID_DMNSN environment,
151 DRUG_DMNSN dd,
152 PRVDR_DMNSN pd,
153 biplr_up_v1
154. WHERE THE
(155)
156 (biplr_up_v1.mbr_id = MBR_ID_DMNSN. UNIQ_MBR_ID) and
157 (PHRMCY_CLM_FACT. FINL_CLM_KEY = PHRMCY_FINL_CLM_DMNSN. FINL_CLM_KEY) AND
158 (PHRMCY_CLM_FACT. MBR_KEY = MBR_ID_DMNSN. MBR_KEY) and
159 (PHRMCY_CLM_FACT. BNFT_KEY = MBR_BNFT_DMNSN. BNFT_KEY) and
160 (PHRMCY_CLM_FACT. DRUG_KEY = DRUG_DMNSN. DRUG_KEY) and
161 (PHRMCY_FINL_CLM_DMNSN. CLM_ORGN_CD IN (', 'A')) AND
162 (PHRMCY_CLM_FACT. LAST_SRVC_DT BETWEEN q. & fdos. & q and & q. & ldos. & q)
163)
164 Group By
165 mi. UNIQ_MBR_ID,
166 pd. PRVDR_SPCLTY_DESC,
FCP 167. LAST_SRVC_DT,
168 JJ. BRAND_NAME,
5 the system SAS 11:44 Friday, October 30, 2009
169 JJ. GNRC_NAME,
170 JJ. AHFS_THRPTC_CLS_CD,
171 JJ. AHFS_THRPTC_CLS_DESC,
172 JJ. LABEL_NAME,
173 JJ. STRNGTH_NUM,
174 JJ. STRNGTH_UNIT_DESC,
175 JJ. SPECF_THRPTC_CLS_CD,
176 JJ. SPECF_THRPTC_CLS_DESC,
177 JJ. GCN_NUM,
FCP 178. PRSCRPTN_NUM
179);
ERROR: ORACLE prepare error: ORA-00936: lack of expression. SQL statement: SELECT middle. UNIQ_MBR_ID as mrb_id,
RDL PRVDR_SPCLTY_DESC like pcp_spc, FCP. LAST_SRVC_DT as rx_date, JJ. BRAND_NAME as brand, JJ. GNRC_NAME as generic,
DD. AHFS_THRPTC_CLS_CD like ahfs_cd, JJ. AHFS_THRPTC_CLS_DESC as ahfs_dsc, JJ. LABEL_NAME as lbl, JJ. STRNGTH_NUM as
strngth, JJ. STRNGTH_UNIT_DESC as unt, JJ. SPECF_THRPTC_CLS_CD as spc_tx_cls_cd, JJ. SPECF_THRPTC_CLS_DESC as
spc_tx_cls_dsc, JJ. GCN_NUM as gcn, FCP. PRSCRPTN_NUM as rx_num, SUM (FCP. INGRDNT_AMT) as rx_ingrd, SUM (FCP. PD_AMT)
as rx_paid, SUM (FCP. UNIT_SRVC_CNT) as rx_cnt, SUM (FCP. DSPNSD_QTY) as rx_qty, SUM (FCP. DAY_SUPLY_CNT) as rx_day
OF PHRMCY_CLM_FACT pcf, MBR_ID_DMNSN mi, DRUG_DMNSN JJ, pd of the PRVDR_DMNSN, biplr_up_v1 () WHERE the
(biplr_up_v1.mbr_id = MBR_ID_DMNSN. UNIQ_MBR_ID) and (PHRMCY_CLM_FACT. FINL_CLM_KEY =
PHRMCY_FINL_CLM_DMNSN. FINL_CLM_KEY) AND (PHRMCY_CLM_FACT. MBR_KEY = MBR_ID_DMNSN. MBR_KEY) and
(PHRMCY_CLM_FACT. BNFT_KEY = MBR_BNFT_DMNSN. BNFT_KEY) and (PHRMCY_CLM_FACT. DRUG_KEY = DRUG_DMNSN. DRUG_KEY) and
(PHRMCY_FINL_CLM_DMNSN. CLM_ORGN_CD IN (', 'A')) AND (PHRMCY_CLM_FACT. LAST_SRVC_DT BETWEEN ' 01 JUN 2007"
and 30 SEP 2009') Group By mi. UNIQ_MBR_ID, pd. PRVDR_SPCLTY_DESC, FCP. LAST_SRVC_DT, JJ. BRAND_NAME,
DD GNRC_NAME, JJ. AHFS_THRPTC_CLS_CD, JJ. AHFS_THRPTC_CLS_DESC, JJ. LABEL_NAME, JJ. STRNGTH_NUM,
DD STRNGTH_UNIT_DESC, JJ. SPECF_THRPTC_CLS_CD, JJ. SPECF_THRPTC_CLS_DESC, JJ. GCN_NUM, FCP. PRSCRPTN_NUM.
NOTE: PROC SQL set NOEXEC option and will continue to check the syntax of the instructions.
180 run (drop table biplr_up_v1) in rosdwp;
NOTE: Statement is not executed because the NOEXEC option.
181 disconnect of rosdwp;
NOTE: Statement is not executed because the NOEXEC option.
182 of quitting;
NOTE: The SAS system is stopped at this stage of processing errors.
NOTE: PROCEDURE used SQL (total duration of processes):
time real 0.14 seconds
time CPU 0.03 seconds
183
184(1) assuming that LAST_SRVC_DT is a column of PHRMCY_CLM_FACT, to precede the table alias "FCP" rather than the full table name. If a table alias is specified in the FROM clause, it should be used rather than the full table name when you reference the columns.
2) there are two tables in the WHERE clause that do not appear in the FROM clause:PHRMCY_FINL_CLM_DMNSN
MBR_BNFT_DMNSNuser12142482 wrote:
Hello again,Wish Oracle was a bit more informative. Uses an Institute of SAS product called Enterprise Guide. A "hot fix" has been installed to solve a problem that the product appears unable to save the latest version of the revised code changes (hence "BETWEEN between" remaining even after an earlier edition). In any case, with the change, now get this error:
«ERROR: ORACLE prepare error: ORA-00904: "PHRMCY_CLM_FACT".» ' LAST_SRVC_DT': invalid identifier. (The log file is displayed below)
-The-Les restes remains of the error, no matter if code "pass" is used to move the date range to Oracle (which seems correct to the log output below that I believe), or if I hard code the date range in the query SQL PL itself.
-L' preparation error always appears at the end of the internal SELECTION.
-L' error of preparation remain, with or without the GROUP BY clause.Is there something else I'm missing? Someone suggested a reserve word - but other versions of the ANSI SQL standard, I don't see that is the case. I went to Support SAS and SAS list serve to the University of Georgia, but nothing definite from these sources. Have requested either able to run Oracle directly, outside this SAS Institute product - process.
Any suggestions are greatly appreciated. Thank you to all the world very much.
Jeff
150 OF
151 PHRMCY_CLM_FACT pcf,
152 MBR_ID_DMNSN environment,
153 DRUG_DMNSN dd,
154 PRVDR_DMNSN pd,
155 BIPLR_UP_V1 BLPR2
156. WHERE THE
157 (BIPLR_UP_V1.mbr_id = MBR_ID_DMNSN. UNIQ_MBR_ID) and
158 (PHRMCY_CLM_FACT. FINL_CLM_KEY = PHRMCY_FINL_CLM_DMNSN. FINL_CLM_KEY) AND
159 (PHRMCY_CLM_FACT. MBR_KEY = MBR_ID_DMNSN. MBR_KEY) and
160 (PHRMCY_CLM_FACT. BNFT_KEY = MBR_BNFT_DMNSN. BNFT_KEY) and
161 (PHRMCY_CLM_FACT. DRUG_KEY = DRUG_DMNSN. DRUG_KEY) and
162 (PHRMCY_FINL_CLM_DMNSN. CLM_ORGN_CD IN (', 'A')) AND
163 (PHRMCY_CLM_FACT. BETWEEN LAST_SRVC_DT & q. & fdos. & q and q & ldos. & q)
(164);
ERROR: ORACLE prepare error: ORA-00904: "PHRMCY_CLM_FACT." "' LAST_SRVC_DT ': invalid identifier. SQL statement: -
ORA-17629: unable to connect to the remote database server
Hello
I have put Dataguard in place with primary and 1 physical standby for learning/test database:
I do NOT plan the unloading of RMAN backups on the physics of the day before.
Recorded the primary database with RMAN and when "resync catalog db_unique_name all;" is issued.
I get the following error:
---------------------------------------------------------------------------------------------------------------------
RMAN > catalog resync db_unique_name all;
from full resynchronization of the recovery catalog
full complete Resync
resynchronization of data base with DB_UNIQUE_NAME ASTTESTB
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failed to db_unique_name resynchronization command at 28/09/2011 11:34:23
ORA-17629: unable to connect to the remote database server
ORA-17628: Oracle 17629 error returned by remote Oracle Server
------------------------------------------------------------------------------------------------------------------
Configuration of RMAN for the main proceedings are the following:
RMAN > show all to db_unique_name asttest;
RMAN settings for database with db_unique_name ASTTEST are:
CONFIGURE RETENTION POLICY TO RECOVERY OF 7-DAY WINDOW;
CONFIGURE BACKUP OPTIMIZATION # by default
SET UP DEFAULT DISK DEVICE TYPE; # by default
CONFIGURE CONTROLFILE AUTOBACKUP # by default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO "%F" # by default
SET UP THE DEVICE TYPE DISK PARALLELISM 1 BACKUP BACKUPSET TYPE; # by default
CONFIGURE BACKUP OF DATA TO DISK FILE TYPE DEVICE TO 1; # by default
CONFIGURE BACKUP ARCHIVELOG FOR DEVICE TYPE DISK TO 1; # by default
CONFIGURE MAXSETSIZE TO UNLIMITED; # by default
CONFIGURE ENCRYPTION OF DATABASE # by default
CONFIGURE THE ENCRYPTION ALGORITHM "AES128"; # by default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AND 'DEFAULT' LIBERATION OPTIMIZE FOR TRUE LOAD; # by default
CONFIGURE DB Nom_unique "asttest" CONNECT IDENTIFIER ' ASTTEST. UMDNJ. EDU'; _
CONFIGURE DB "Asttestb" of nom_unique CONNECT IDENTIFIER "asttestb"; _
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY;
CONFIGURE SNAPSHOT CONTROLFILE NAME TO ' / opt/oracle/product/11.2.0/dbhome_1/dbs/snapcf_asttest.f'; # by default
Configuration of RMAN for instance physical standby are:
RMAN > show all to db_unique_name asttestb;
RMAN settings for database with db_unique_name ASTTESTB are:
CONFIGURE RETENTION POLICY TO RECOVERY OF 7-DAY WINDOW;
CONFIGURE BACKUP OPTIMIZATION # by default
SET UP DEFAULT DISK DEVICE TYPE; # by default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO "%F" # by default
SET UP THE DEVICE TYPE DISK PARALLELISM 1 BACKUP BACKUPSET TYPE; # by default
CONFIGURE BACKUP OF DATA TO DISK FILE TYPE DEVICE TO 1; # by default
CONFIGURE BACKUP ARCHIVELOG FOR DEVICE TYPE DISK TO 1; # by default
CONFIGURE MAXSETSIZE TO UNLIMITED; # by default
CONFIGURE ENCRYPTION OF DATABASE # by default
CONFIGURE THE ENCRYPTION ALGORITHM "AES128"; # by default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AND 'DEFAULT' LIBERATION OPTIMIZE FOR TRUE LOAD; # by default
CONFIGURE DB Nom_unique "asttest" CONNECT IDENTIFIER ' ASTTEST. UMDNJ. EDU'; _
CONFIGURE DB "Asttestb" of nom_unique CONNECT IDENTIFIER "asttestb"; _
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY;
CONFIGURE SNAPSHOT CONTROLFILE NAME TO ' / opt/oracle/product/11.2.0/dbhome_1/dbs/snapcf_asttest.f'; # by default
----------------------------------------------------------------------------------------------------------------------
When I tested missing missing datafile and control file scenario on the primary database, it worked (Advisor to recover data)
However, missing datafile scenario does not work on the physics of the day before.
Here are the steps I followed:
********************************************
1 renamed a file of physical data - in standby mode:
bash - $3.2 ls - ltr
Total 107832
-rw - r - 1 oracle oinstall 52429312 16 September 12:19 asttest_redo03.log
-rw - r - 1 oracle oinstall 61874176 Sep 29 15:41 asttest_temp01.dbf
-rw - r - 1 oracle oinstall 52436992 5 Oct 11:00 rmandg_data01.dbf
bash - $3.2 mv rmandg_data01.dbf rmandg_data01.dbf_old
bash - $3.2 ls - ltr
Total 107832
-rw - r - 1 oracle oinstall 52429312 16 September 12:19 asttest_redo03.log
-rw - r - 1 oracle oinstall 61874176 Sep 29 15:41 asttest_temp01.dbf
-rw - r - 1 oracle oinstall 52436992 5 Oct 11:00 rmandg_data01.dbf_old
2. restore the datafile (find the data file # view v$ recover_file):
RMAN > restore datafile 5;
From restoration to 5 October 11
Segmentation fault
3. in spite of the error, published "recover datafile command.
4 RMAN > recover datafile 5;
From pick up to 5 October 11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID = 10 type of device = DISK
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the command recover at 05/10/2011 12:00:40
RMAN-06094: datafile 5 must be restored.
5. manually copy the physical primary datafile - in standby mode, & then problem recover RMAN command:
bash - $3.2 scp oracle@msudrainier:/ora03/oradata/asttest/rmandg_data01.dbf.
rmandg_data01.dbf 100% 50 MB 16.7 MB/s 00:03
bash - $3.2 ls - ltr
Total 159096
-rw - r - 1 oracle oinstall 52429312 16 September 12:19 asttest_redo03.log
-rw - r - 1 oracle oinstall 61874176 Sep 29 15:41 asttest_temp01.dbf
-rw - r - 1 oracle oinstall 52436992 5 Oct 11:49 rmandg_data01.dbf_old
-rw - r - 1 oracle oinstall 52436992 5 Oct 12:01 rmandg_data01.dbf
RMAN > recover datafile 5;
From pick up to 5 October 11
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the command recover at 05/10/2011 12:01:59
RMAN-06067: RECOVER the DATABASE required with a backup control file or created
6. of course RMAN commands have failed to restore the missing data file;
So I renamed the file to original and rebooted repeat services applies - this restore the data file and now the configuration state of the DG is normal.
*********************************************************************************
Not quite sure if I'm still he hands the right way or if the error above is related to RMAN not able to synchronize with the physics of the day before.
The documentation I want to talk to is here (1 paragraph):
[http://download.oracle.com/docs/cd/B28359_01/server.111/b28294/rman.htm#BAJDFBDD | http://download.oracle.com/docs/cd/B28359_01/server.111/b28294/rman.htm#BAJDFBDD]
Any pointers/direction and advise is greatly appreciated.
Best regards
NKI got it!
/home/oracle:STANDBY >$ORACLE_HOME/bin/rman target sys/
catalog / @rcatalog Recovery Manager: Release 11.2.0.1.0 - Production on Fri Oct 7 14:12:10 2011 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. connected to target database: PRIMARY (DBID=1562898590, not open) connected to recovery catalog database RMAN> resync catalog from db_unique_name all; resyncing from database with DB_UNIQUE_NAME PRIMARY starting full resync of recovery catalog RMAN output not resynced for database with DB_UNIQUE_NAME PRIMARY full resync complete If the necessary connection string a target/sys and a catalogue
RMAN target sys /
catalog / @rcatalog I did my standby
Will try the primary
Best regards
mseberg
Work on both. Great question!
connected to target database: PRIMARY (DBID=1562898590) connected to recovery catalog database RMAN> resync catalog from db_unique_name all; starting full resync of recovery catalog full resync complete resyncing from database with DB_UNIQUE_NAME STANDBY RMAN output not resynced for database with DB_UNIQUE_NAME STANDBY RMAN>
Published by: mseberg on October 7, 2011 14:16
Thanks a ton for sticking to it. I'll add this little thing to my web site.
Published by: mseberg on October 7, 2011 14:22
-
ORA-00604: error occurred at recursive SQL when the proc via db_link
Hello
I'm on 9.2.0.8 and got a strange problem with simple test cases
What wrong with my code?on source db: CREATE OR REPLACE PROCEDURE ADMIN.gg_ref(out_tokens OUT SYS_REFCURSOR) is BEGIN OPEN out_tokens for select dummy from dual; END ; / Now testing code localy: SQL> var r refcursor SQL> declare 2 output sys_refcursor; 3 begin 4 adminx.gg_ref(output); 5 :r:=output; 6 end; 7 / PL/SQL procedure successfully completed. SQL> print r D - X So its working. I've got db_link to that db , and now call that proc via dblink from other 9.2.0.8 DB: var r refcursor 1 declare 2 output sys_refcursor; 3 begin 4 admin.gg_ref@LINK_NAME(output); 5 :r:=output; 6* end; SQL> / declare * ERROR at line 1: ORA-00604: error occurred at recursive SQL level 1 ORA-00900: invalid SQL statement
Is there a any restriction that I'm not aware?
Concerning
GregGGregG says:
What should my code looks like now?
Should I rewrite this as function returns the index of collection or something?You can use DBMS_SQL - but use the remote package and not the local. It's a little more complex ito call interface you use a Ref Cursor, but is the same server-side. DBMS_SQL also provides a more comprehensive set of features to use the ref cursor interface.
Most, however, is add code - DBMS_SQL is a lower level interface (much closer to the real Oracle Call Interface/OIC):
--// on remote database the procedure returns a DBMS_SQL cursor instead of a ref cursor SQL> create or replace procedure FooProc( cur in out number, deptID number ) is 2 rc number; 3 begin 4 cur := DBMS_SQL.open_cursor; 5 6 DBMS_SQL.parse( 7 cur, 8 'select ename from emp where deptno = :deptID', 9 DBMS_SQL.native 10 ); 11 12 DBMS_SQL.Bind_Variable( cur, 'deptID', deptID ); 13 14 rc := DBMS_SQL.Execute( cur ); 15 end; 16 / Procedure created. --// from the local database side we call this remote proc SQL> declare 2 c number; --// instead of using sys_refcursor 3 empName varchar2(10); --// buffer to fetch column into 4 begin 5 FooProc@testdb( c, 10 ); --/ call the proc that creates the cursor 6 7 --// we need to define our fetch buffer for the 1st column in the 8 --// SQL projection of that cursor (10 byte fetch buffer for 1st column) 9 DBMS_SQL.define_column@testdb( c, 1, empName, 10 ); 10 11 --// we now fetch from this cursor, but via the DBMS_SQL 12 --// interface 13 loop 14 --// fetch the row (exit when 0 rows are fetched) 15 exit when DBMS_SQL.Fetch_Rows@testdb( c ) = 0; 16 17 --// copy value of 1st column in row into the local PL/SQL buffer 18 DBMS_SQL.column_value@testdb( c, 1, empName ); 19 20 --// record value it via dbms output 21 DBMS_OUTPUT.put_line( 'name='||empName||' deptID=10' ); 22 end loop; 23 24 --// close it explicitly as you would a ref cursor 25 DBMS_SQL.Close_Cursor@testdb( c ); 26 end; 27 / name=CLARK deptID=10 name=KING deptID=10 name=MILLER deptID=10 PL/SQL procedure successfully completed. SQL>
-
Once again - ORA-28545: error diagnosed by Net8 when connecting to an agent
I am trying to connect to a SQL server server 2012
I make the connections ODBC (called MOFIBO2, MOFIBO3, MOFIBO4) and I have a successful connection to then SQL server.
The Oracle database is:
Oracle Database 11 g Release 11.2.0.3.0 - 64 bit Production
I made 3 versions of the initdg4odbc.ora and they all look the same:
# This is an example of initialization file of the agent that contains the HS settings
# necessary for the database to ODBC gateway
#
# HS init parameters
#
HS_FDS_CONNECT_INFO = MOFIBOx (MOFIBO2, MOFIBO3 and MOFIBO4)
HS_FDS_TRACE_LEVEL = off
#
# Required for the non-Oracle system environment variables
#
#set < varenv > = < value >
My lisener.ora look like this:
listener.ora # Network Configuration file: C:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = RESP-ora01)(PORT = 1521))
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)
(= Extproc PROGRAM)
)
(SID_DESC =
(ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)
(SID_NAME = RESPTEST)
)
(SID_DESC =
(SID_NAME = MOFIBO2)
(ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)
(PROGRAM = dg4odbc)
)
(SID_DESC =
(SID_NAME = MOFIBO3)
(ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)
(PROGRAM = dg4odbc)
)
(SID_DESC =
(SID_NAME = MOFIBO4)
(ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)
(PROGRAM = dg4odbc)
)
)
ADR_BASE_LISTENER = C:\app\Administrator\product\11.2.0\dbhome_1\log
And my share of tnsnames.ora mofibo then look like this (I did three variants as different "manual" using different methods):
MOFIBO2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = resp-ora02)(PORT=1521))
(CONNECT_DATA =
(SID = MOFIBO2)
)
(HS = OK)
)
MOFIBO3 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = resp-ora02)(PORT=1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SID_NAME = MOFIBO3)
)
(HS = OK)
)
MOFIBO4 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = resp-ora02)(PORT=1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = MOFIBO4)
)
(HS = OK)
)
When tnsping to all three versions I get this:
C:\users\administrator > tnsping mofibo2
AMT Ping Utility for 64-bit Windows: Version 11.2.0.3.0 - Production on April 24, 2014 12:48:17
Copyright (c) 1997, 2011, Oracle. All rights reserved.
Use settings files:
C:\app\Administrator\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
TNSNAMES adapter used to resolve the alias
Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = resp-ora02)(PORT=1521)) (CONNECT_DATA = (SID = MOFIBO2)))
HS = OK))
OK (10 ms)
C:\users\administrator > tnsping mofibo3
AMT Ping Utility for 64-bit Windows: Version 11.2.0.3.0 - Production on April 24, 2014 12:48:23
Copyright (c) 1997, 2011, Oracle. All rights reserved.
Use settings files:
C:\app\Administrator\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
TNSNAMES adapter used to resolve the alias
Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = resp-ora02)(PORT=1521)) (CONNECT_DATA = (SERVER = DELTOMBE
(RELATED) (SID_NAME = MOFIBO3)) (HS = OK))
OK (10 ms)
C:\users\administrator > tnsping mofibo4
AMT Ping Utility for 64-bit Windows: Version 11.2.0.3.0 - Production on April 24, 2014 12:48:27
Copyright (c) 1997, 2011, Oracle. All rights reserved.
Use settings files:
C:\app\Administrator\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
TNSNAMES adapter used to resolve the alias
Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = resp-ora02)(PORT=1521)) (CONNECT_DATA = (SERVER = DELTOMBE
(RELATED) (SERVICE_NAME = MOFIBO4)) (HS = OK))
OK (0 msec)
I created three database link with then in following (user name and password was in the wright case):
create database MOFIBODB2 link to connect to the "username <>' identified by"password <>"with"MOFIBO2 ";
create database MOFIBODB3 link to connect to the "username <>' identified by"password <>"with"MOFIBO3 ";
create database MOFIBODB4 link to connect to the "username <>' identified by"password <>"with"MOFIBO4 ";
When I tried to select from a table (select * from clients @ < DATABASELINKHERE >) I get errors (replace MOFIBO2 with MOFIBO3/4 and the same error occurs):
SQL > select * from customers@MOFIBODB2;
Select * from customers@MOFIBODB2
*
ERROR on line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
Cannot retrieve the text of the message NETWORK/NCR 65535
ORA-02063: preceding 2 lines of MOFIBODB2
What was my mistake?
Hello
In the listener.ora, you have the host as -
(HOST = RESP-ora01)
but in tnsnames.ora entries you have.
(HOST = RESP-ouA02)
The tnsnames.ora host must be the same as the host of the listener.
Unless you have a listener running on the RESP-ouA02 it is not clear why the tnsping returns a result.
Change the host in the tnsnames.ora and let us know what happens.
Kind regards
Mike
Maybe you are looking for
-
How can firefox changed Trojan horse, I fix?
Firefox changed Trojan horse. Whenever I hit a new tab, it changes the appearance of firefox and tries to open a new page, www.trovi.com/ I uninstalled firefox and reinstalled, but which did not set it... Do I need a cleaning of the firefox and all t
-
Someone has stolen my Hotmail address (* address email is removed from the privacy *). I had this account forever, and one who stole he had access to a large number of personal information. I would like to know how to recover this address (that is to
-
Cannot set 'Security' tab when looged on as administrator
Running Windows XP Pro Service Pack 3, logged on as administrator. Having problems connecting to a shared printer on this system and strives to verify permissions. When I go to properties of the printer, there is no security tab. Same situation when
-
Help! My Sansa Clip + is no longer recognized by my PC when connected by USB port!
Reading, the latter time, ' said, 'written' only when connected. Normally, he alternates between the 'Reading' and 'Writing' when it is connected to the PC and, therefore, it USED TO BE recognized by the PC in these conditions. The device is not reco
-
SCREEN BLUE DRIVER_POWER_STATE_FAILURE
I recently got the SSD drive on my laptop replaced and Win 7 reconfigured to my laptop (DELL Latitude E5450) Since then, almost every day I get the blue screen shows Someone here can shed light on what could be the cause of this? I looked on here an