TNS-12560 and ORA-12505 error
Hi
I have a debian based server, running with no problem Oracle XE for months.
But now my server is getting a new ip address, after that my oracle-xe doesn't work well.
When i try to connect to it i get: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor.
I try to tnsping the XE service:
tnsping XE
the answer is: TNS-12560: TNS:protocol adapter error
What can i do?
Should i register the new IP address? If it, where can i configure it?
Or what is wrong?
Thanks for any help and sorry for my English!
Paul M. wrote:
$ lsnrctl statThen, depending on how it's configured, you may need to change tnsnames.ora file, in $ORACLE_HOME/network/admin.Just to add to this (since the issue is resolved):
A TNS-12560 usuallly indicates that the listener can not start up correctly because of a hostname or an IP address problem. That may be due to resolution (bind, DNS or /etc/hosts) or the listener configuration.
If the problem is in the listener configuration, the change must be in the listener.ora file (in the above directory).
If the listener is OK, and the problem is in the client end (usually a TNS-12154) they "tnsnames.ora" needs to be adjusted.
Similar Messages
-
Oracle 10g ora 12560 and ora 12514 errors
i am a new oracle user. and i have some problems
i installed 10g then,
when i was creating a database,
i received an error messagge "ora-12560",
therefore i cancelled creating database.
i run sqlplus, i received error messagge again
but this messagge differ from first one. it is "ora-12514"
and i tested net manager my oranokta in tnsnames,
same problem is continuesly
and last thing i have a toshiba notebook with intel centrino 1.6
and windows xp with sp2.
i attached below my tnsnames, listener and sqlnet.ora files.
listener.ora
# listener.ora Network Configuration File: D:\oracle\product\10.1.0\db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\oracle\product\10.1.0\db_1)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = muttim)(PORT = 1521))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
sqlnet.ora
# sqlnet.ora Network Configuration File: D:\oracle\product\10.1.0\db_1\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES)
tnsnames.ora
# tnsnames.ora Network Configuration File: D:\oracle\product\10.1.0\db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORA10 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = muttim)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = Ora10)
ORANOKTA =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = muttim)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = OraNokta)
thank you for helphi oradba
i opened
start=>run=>services.msc
i didn't find "oracleservice<sid>"
and
i found dbca logfiles,
i attached them
cloneDBCreation.log
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0641: "EXECUTE" sunucu bağlantısı gerektirir
ORA-12560: TNS: Protokol bağdaştırıcısı hatası
ORA-12560: TNS: Protokol bağdaştırıcısı hatası
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
ERROR:
ORA-12560: TNS: Protokol bağdaştırıcısı hatası
CloneRmanRestore.log
ORA-12560: TNS: Protokol bağdaştırıcısı hatası
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
ERROR:
ORA-12560: TNS: Protokol bağdaştırıcısı hatası
lockAccount.log
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
postDBCreation.log
ERROR:
ORA-12560: TNS: Protokol bağdaştırıcısı hatası
SP2-0640: Bağlı değil
ORA-12560: TNS: Protokol bağdaştırıcısı hatası
ERROR:
ORA-12560: TNS: Protokol bağdaştırıcısı hatası
ORA-12560: TNS: Protokol bağdaştırıcısı hatası
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0641: "EXECUTE" sunucu bağlantısı gerektirir
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
ERROR:
ORA-12560: TNS: Protokol bağdaştırıcısı hatası
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
postScripts.log
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
ERROR:
ORA-12560: TNS: Protokol bağdaştırıcısı hatası
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
ERROR:
ORA-12560: TNS: Protokol bağdaştırıcısı hatası
SP2-0640: Bağlı değil
ERROR:
ORA-12560: TNS: Protokol bağdaştırıcısı hatası
dropping default lexer preference...
SP2-0640: Bağlı değil
dropping default wordlist preference...
SP2-0640: Bağlı değil
dropping default stoplist preference...
SP2-0640: Bağlı değil
dropping default policy...
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
lang_abbr değerini girin: SP2-0310: "D:\oracle\product\10.1.0\db_1\ctx\admin\defaults\drdefset.sql" dosyası açılamıyor
ERROR:
ORA-12560: TNS: Protokol bağdaştırıcısı hatası
SP2-0640: Bağlı değil
SP2-0641: "EXECUTE" sunucu bağlantısı gerektirir
SP2-0640: Bağlı değil
rmanRestoreDatafiles.sql
set echo off;
set serveroutput on;
select systimestamp from dual;
variable devicename varchar2(255);
declare
omfname varchar2(512) := NULL;
done boolean;
begin
dbms_output.put_line(' ');
dbms_output.put_line(' Allocating device.... ');
dbms_output.put_line(' Specifying datafiles... ');
:devicename := dbms_backup_restore.deviceAllocate;
dbms_output.put_line(' Specifing datafiles... ');
dbms_backup_restore.restoreSetDataFile;
dbms_backup_restore.restoreDataFileTo(4, 'D:\oracle\product\10.1.0\oradata\OraNoktaDB\USERS01.DBF', 0, 'USERS');
dbms_backup_restore.restoreDataFileTo(3, 'D:\oracle\product\10.1.0\oradata\OraNoktaDB\SYSAUX01.DBF', 0, 'SYSAUX');
dbms_backup_restore.restoreDataFileTo(2, 'D:\oracle\product\10.1.0\oradata\OraNoktaDB\UNDOTBS01.DBF', 0, 'UNDOTBS1');
dbms_backup_restore.restoreDataFileTo(1, 'D:\oracle\product\10.1.0\oradata\OraNoktaDB\SYSTEM01.DBF', 0, 'SYSTEM');
dbms_output.put_line(' Restoring ... ');
dbms_backup_restore.restoreBackupPiece('D:\oracle\product\10.1.0\db_1\assistants\dbca\templates\Seed_Database.dfb', done);
if done then
dbms_output.put_line(' Restore done.');
else
dbms_output.put_line(' ORA-XXXX: Restore failed ');
end if;
dbms_backup_restore.deviceDeallocate;
end;
select systimestamp from dual;
ultraSearchCfg.log
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
============== Ultra Search Configuration ==============
============== argument list
WKSYSPW=XXXXXXXX
JDBC_CONNSTR=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=muttim)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=OraNokta)))
LAUNCH_ANYWHERE=false
CONN_STRING=
OH=D:\oracle\product\10.1.0\db_1
JDBCDRIVER_PATH=D:\oracle\product\10.1.0\db_1\jdbc\lib\classes12.zip
JDBCNLS_PATH=D:\oracle\product\10.1.0\db_1\jdbc\lib\nls_charset12.zip
JRE_HOME=D:\oracle\product\10.1.0\db_1\jdk\jre\
JAVA_EXE_PATH=D:\oracle\product\10.1.0\db_1\jdk\bin\java.exe
PSEP=;
CTXHX=D:\oracle\product\10.1.0\db_1\bin\ctxhx.exe
==================
ERROR:
ORA-12560: TNS: Protokol bağdaştırıcısı hatası
SP2-0640: Bağlı değil
============== populating the WK$CRAWLER_CONFIG_DEFAULT table
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
============== load crawler classpath
...... setting the crawler classpath
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
============== updating crawler configuration
SP2-0640: Bağlı değil
SP2-0641: "EXECUTE" sunucu bağlantısı gerektirir
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
...... creating lexer preference
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
SP2-0640: Bağlı değil
...... creating wordlist preference
SP2-0640: Bağlı değil
...... creating storage preference
SP2-0640: Bağlı değil
...... creating stoplist
SP2-0640: Bağlı değil
...... creating section group
SP2-0640: Bağlı değil
...... creating zone sections
SP2-0640: Bağlı değil
...... creating field sections
SP2-0640: Bağlı değil
...... creating filter preference
SP2-0640: Bağlı değil
...... creating datastore preference
SP2-0640: Bağlı değil
... checking for invalid objects... see list below
================== list start
SP2-0640: Bağlı değil
================== list end
============== End of Configuration ==============
note : my operating system's language is turkish. -
Cannot connect: ORA-12505 error (listener does not know SID..)
I have an Oracle 10g installation insde a VM with private IP (192.168.109.128) and I'm trying to access it from the host operating system with aqua data studio, but get ORA-12505 error (listener does not currently know of SID...). The identical error occurs if I try to cennect from within the VM itself.
"tnsping dbdemo" prints:
==================
Used parameter files:
C:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = VMDSINW2K3S)(PORT = 1521)) (CONNECT_DATA =
(SERVER = DEDICATED) (SERVICE_NAME = dbdemo.datadsin)))
OK (10 msec)
and lsnrctl status:
=============
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
Start Date 12-MAR-2007 15:22:55
Uptime 0 days 0 hr. 5 min. 14 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
Listener Log File C:\oracle\product\10.2.0\db_1\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=VMDSINW2K3S)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
and the listener.log:
===============
12-MAR-2007 15:29:21 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=dbdemo.datadsin)) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.10)(PORT=1325)) * establish * dbdemo.datadsin * 12514
TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
12-MAR-2007 15:29:21 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=dbdemo.datadsin)) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.10)(PORT=1327)) * establish * dbdemo.datadsin * 12514
TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
12-MAR-2007 15:29:21 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=dbdemo.datadsin)) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.10)(PORT=1328)) * establish * dbdemo.datadsin * 12514
TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
12-MAR-2007 15:29:45 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=dbdemo.datadsin)) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.10)(PORT=1331)) * establish * dbdemo.datadsin * 12514
TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
12-MAR-2007 15:29:51 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=dbdemo.datadsin)) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.10)(PORT=1335)) * establish * dbdemo.datadsin * 12514
TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
12-MAR-2007 15:29:51 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=dbdemo.datadsin)) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.10)(PORT=1336)) * establish * dbdemo.datadsin * 12514
TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
12-MAR-2007 15:29:51 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=dbdemo.datadsin)) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.10)(PORT=1338)) * establish * dbdemo.datadsin * 12514
TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
12-MAR-2007 15:29:51 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=dbdemo.datadsin)) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.10)(PORT=1339)) * establish * dbdemo.datadsin * 12514
TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
my sqlnet.ora is:
============
# sqlnet.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)12514, 00000, "TNS:listener does not currently know of service requested in connect descriptor"
// *Cause: The listener received a request to establish a connection to a
// database or other service. The connect descriptor received by the listener
// specified a service name for a service (usually a database service)
// that either has not yet dynamically registered with the listener or has
// not been statically configured for the listener. This may be a temporary
// condition such as after the listener has started, but before the database
// instance has registered with the listener.
// *Action:
// - Wait a moment and try to connect a second time.
// - Check which services are currently known by the listener by executing:
// lsnrctl services <listener name>
// - Check that the SERVICE_NAME parameter in the connect descriptor of the
// net service name used specifies a service known by the listener.
// - If an easy connect naming connect identifier was used, check that
// the service name specified is a service known by the listener.
// - Check for an event in the listener.log file. -
ORA-00001 and ORA-06512 error on DBMS_WM.ResolveConflicts
We are getting unique constraint error in Production Database. We are able to merge most of the workspaces with no issues. One workspace is givign errors on merge.
Here is the code
begin
dbms_wm.gotoworkspace('denialletterspoc_onmzpulp');
dbms_wm.setdiffversions('denialletterspoc_onmzpulp','LIVE');
dbms_wm.SetConflictWorkspace('denialletterspoc_onmzpulp');
commit;
DBMS_WM.BeginResolve('denialletterspoc_onmzpulp');
DBMS_WM.ResolveConflicts(
workspace => 'denialletterspoc_onmzpulp',
table_name => 'MCM_MESSAGE',
where_clause => ' id in (8403026,10134822,8259485,8259488,8426289,8426287,10186643,8426288) ',
keep => 'CHILD'
exception when others then
DBMS_WM.RollbackResolve('denialletterspoc_onmzpulp');
raise;
end;
ORA-00001: unique constraint (T2.MCM_MESSAGE_PK) violated
ORA-06512: at line 16
I looked at the date in XXX_lt tables and it does not look suspecious. Please help us understand
ORA-00001 and ORA-06512 error.
Amit GangwarHi, Ben
Our OWM_VERSION is 10.2.0.4.3.
I tried disable and enable constraint MCM_MESSAGE_PK. But didn't fix our issue.
Split where clause from " id in (...) " syntax to " id = ... " syntax will reduce performance heavily. And I did some test that " id in (...) " syntax works well in our dev env.
I opened our trace file and get below plsql block. When I perform it get same error with our original codes. Please notice the part of "forall wm_indx in WM_rowids.first .. WM_rowids.last execute immediate 'begin insert into T2.MCM_MESSAGE_lt ... ...", error occurred here. But if I change the "forall" syntax to normal " for ... loop" syntax then no error here. Can you give me some advice or suggestion?
DECLARE
WM_rowids wmsys.lt_ctx_pkg.rowidTabType;
WM_rowids_vt wmsys.lt_ctx_pkg.rowidTabType;
WM_curver wmsys.lt_ctx_pkg.int_tab;
WM_vtRow wmsys.lt_ctx_pkg.int_tab;
WM_nextver wmsys.lt_ctx_pkg.nextver_tab;
WM_found integer := 0;
BEGIN
dbms_wm.gotoworkspace('denialletterspoc_onmzpulp');
dbms_wm.setdiffversions('denialletterspoc_onmzpulp','LIVE');
dbms_wm.SetConflictWorkspace('denialletterspoc_onmzpulp');
/* update the auxilliary table of snapshots */
/* These are rows in the current version that have already been resolved once */
update T2.MCM_MESSAGE_aux st
set (snapShotChild, snapShotParent, versionParent) =
(select p.WM_childds, p.WM_parentds, p.WM_parentver
from T2.MCM_MESSAGE_pkc p
where p.ID = st.ID),
value = '0',
wm_opcode = 'CC'
where st.versionChild = 614
and (ID) in (select ID
from T2.MCM_MESSAGE_pkc p
where (id in (8403026,
10134822,
8259485,
8259488,
8426289,
8426287,
10186643,
8426288)));
select distinct WM_ridchild bulk collect
into WM_rowids
from T2.MCM_MESSAGE_pkc
where (id in (8403026,
10134822,
8259485,
8259488,
8426289,
8426287,
10186643,
8426288))
and WM_childver != 614;
if (WM_rowids.first is not null) then
WM_found := 1;
forall wm_indx in WM_rowids.first .. WM_rowids.last
update T2.MCM_MESSAGE_lt
set retireTime = wmsys.owm_9ip_pkg.activeTimeForDML,
nextver = wmsys.lt_ctx_pkg.getNextVer(nextver,
614,
version,
'denialletterspoc_onmzpulp',
'CRS_LEAF',
22)
where rowid = WM_rowids(wm_indx)
returning wmsys.lt_ctx_pkg.getCurNextVer bulk collect into WM_nextver;
/* These are the rows that have not yet been resolved after the latest BeginResolve */
forall wm_indx in WM_rowids.first .. WM_rowids.last execute immediate
'begin insert into T2.MCM_MESSAGE_lt(ID,DPS_APPLICATION_ID,TYPE_ID,NAME,PRIVILEGED,CAMPAIGN_ID,TEXT,FILE_NAME,GRAPHIC_WIDTH,GRAPHIC_HEIGHT,DESCRIPTION,ACTIVE,INCLUDE_IN_LIBRARY,MESSAGE_FILTER_ID,OP_USER_ID,OP_WORKSPACE,OP_TIME,version,createtime,retiretime,nextver,delstatus,ltlock)
(select t1.ID,t1.DPS_APPLICATION_ID,t1.TYPE_ID,t1.NAME,t1.PRIVILEGED,t1.CAMPAIGN_ID,t1.TEXT,t1.FILE_NAME,t1.GRAPHIC_WIDTH,t1.GRAPHIC_HEIGHT,t1.DESCRIPTION,t1.ACTIVE,t1.INCLUDE_IN_LIBRARY,t1.MESSAGE_FILTER_ID,t1.OP_USER_ID,t1.OP_WORKSPACE,t1.OP_TIME,614, wmsys.owm_9ip_pkg.activeTimeForDML, null,:1, sign(delstatus)*(abs(delstatus)+1),
wmsys.lt_ctx_pkg.checkngetlock(''C'', t1.ltlock, t1.nextver, ''denialletterspoc_onmzpulp'', 0,
''MODIFY'', t1.version, t1.delstatus, 0, 1)
from T2.MCM_MESSAGE_lt t1
where t1.rowid = :2); end;'
using WM_nextver(wm_indx),
WM_rowids(wm_indx)
end if;
if (WM_found = 1) then
wmsys.lt_ctx_pkg.update_modified_tables('T2',
'MCM_MESSAGE',
614,
'denialletterspoc_onmzpulp',
22);
end if;
if (WM_found = 1) then
forall wm_indx in WM_rowids.first .. WM_rowids.last
delete from T2.MCM_MESSAGE_aux
where (ID) in (select ID
from T2.MCM_MESSAGE_lt
where rowid = WM_rowids(wm_indx))
and childState = 'denialletterspoc_onmzpulp';
end if;
/* now insert new syncing information about these rows */
execute immediate 'insert into T2.MCM_MESSAGE_aux (
select ID,
p.WM_childstate, p.WM_parentstate,
p.WM_childds, 614, p.WM_parentds, p.WM_parentver, ''0'',''CC''
from T2.MCM_MESSAGE_pkc p
where ( id in (8403026,10134822,8259485,8259488,8426289,8426287,10186643,8426288) ) )';
END;
Thanks
Amos -
Ora - 01110 and ora 01157 error
Hi,
I am using linux 9i and solaris 5.8 .while i am connecting to the database it shows the ora - 01110 and ora 01157 error.i moved the temp datafile to some location after that only i receiced that error.then i moved the temp file to the particular location.after that what i can to do to resolve the error.
plz in detail sql query.
Thanks
gobi.Can you detail how you are moving the file? Are you using one of the following methods:
With the database down
move/rename the file with OS commands
mount the database and issue the following
alter database rename file '<original path and file name>' to '<new path and file name>';
Open the database
or
With the database open take the tablespace the contains the files to be moved/rename offline.
move/rename the files with OS commands.
alter tablespace <tablespace name> rename datafile '<original path and file name>' to '<new path and file name>';
Bring the tablespace back online. -
ORA-12505, TNS:listener and ORA-12514: TNS:listener
All,
Connecting to the database through the SQL Developer is giving me the error "ORA-12505, TNS:listener does not currently know of SID given in connect descriptor"
Database version : Oracle 10g XE
O/S : Windows 7, 32 bit
I have restarted my machine and tried but no luck. Tried from sqlplus also and the error was
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor"
Please provide me the steps to check and resolve this issue.
Thank you very much in advance.
ThanksHere is what I have in my tnsnames.ora file
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = MSPL-08-09-D169.MSFTPNQ.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
Database name is 'XE' -
Am unable to start the listener, it throws error# TNS-12560 and TNS-00583.
$ lsnrctl start
---------------------------------------------------ERROR MESSAGE----------------------------
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 25-SEP-2011 00:01:50
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
TNS-12560: TNS:protocol adapter error
TNS-00583: Valid node checking: unable to parse configuration parameters
Listener failed to start. See the error message(s) above...
am using two database 1)bullet 2)karthy where bullet db is target and karthy is catalog and my LISTENER ENTRY is
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = karthy)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
(global_name = karthy)
(SID_DESC =
(SID_NAME = bullet)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
(global_name = bullet)
my TNS entry is
tns_bull
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(port=1521))
(CONNECT_DATA =
(server=dedicated)
(service_name=karthy)
kindly correct me where am gone wrong...ksk wrote:
OS cmds
$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
Listener is connected so their is no error at that tailexcellent point.
using localhost/127.0.0.1 means that no remote client can ever connect to listener/DB
The upside is that your DB like mine can NEVER be hacked across the *NET! -
ORA-12505 error after setup tnsnames and listener properly.
Hello.
I'm having a very common issue. I can't connect using tnsnames on Windows 2003 server.
Facts.
1 - Tnsnames.ora file is properly set.
2 - Listener.ora file is properly set.
3 - tnsping works with no issues.
4 - Windows service is up and running.
However, I'm getting this error.
C:\Documents and Settings\sabreadm>sqlplus lps/first1@lm3dprd1
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jun 24 12:32:26 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12505: TNS:listener does not currently know of SID given in connect
descriptor
Enter user-name:
ERROR:
ORA-01017: invalid username/password; logon denied
listener.ora file content
# listener.ora Network Configuration File: D:\Apps\oracle\network\admin\listener.ora
# Generated by Oracle configuration tools.
TRACE_LEVEL_LISTENER = USER
TRACE_DIRECTORY_LISTENER = D:\Apps\oracle\NETWORK\ADMIN
LOG_FILE_LISTENER = listener.log
LOG_DIRECTORY_LISTENER = D:\Apps\oracle\NETWORK\ADMIN
TRACE_FILE_LISTENER = listener.trc
MAX_REG_CONNECTIONS_LISTENER = 3000
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.58.44)(PORT = 1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = lm3dtst1)
(ORACLE_HOME = D:\Apps\oracle)
(SID_DESC =
(SID_NAME = lm3dprd1)
(ORACLE_HOME = D:\Apps\oracle)
tnsnames.ora file content.
# tnsnames.ora Network Configuration File: D:\Apps\oracle\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
lm3dtst1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)
(Host = 192.168.58.44)
(Port = 1521)
(CONNECT_DATA =
(SID = lm3dtst1
(GLOBAL_NAME = lm3dtst1)
lm3dprd1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)
(Host = 192.168.58.44)
(Port = 1521)
(CONNECT_DATA =
(SID = lm3dprd1
(GLOBAL_NAME = lm3dprd1)
Any advice will be highly appreciated.
Thanks.
Alex.Alex,
Next time when you post code or output or any configuration, enclose them between \ tags to preserve formatting
Your code or output \h4. Anyway, modify your tnsnames.ora file on your client machine and add this lm3dprd1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.58.44)(PORT = 1521))
(CONNECT_DATA =
(SERVER = dedicated)
(SERVICE_NAME = lm3dprd1)
(INSTANCE_NAME=lm3dprd1)
Regards
OrionNet -
Ora 12505 error in Sql developer
can any one help.... when i was about to create a table in oracle sql developer i got error mesg ora 12505 listener refused the connection... tns doesnt respond
892111 wrote:
can any one help.... when i was about to create a table in oracle sql developer i got error mesg ora 12505 listener refused the connection... tns doesnt respond
12505, 00000, "TNS:listener does not currently know of SID given in connect descriptor"
// *Cause: The listener received a request to establish a connection to a
// database or other service. The connect descriptor received by the listener
// specified a SID for an instance (usually a database instance) that either
// has not yet dynamically registered with the listener or has not been
// statically configured for the listener. This may be a temporary condition
// such as after the listener has started, but before the database instance
// has registered with the listener.
// *Action:
// - Wait a moment and try to connect a second time.
// - Check which instances are currently known by the listener by executing:
// lsnrctl services <listener name>
// - Check that the SID parameter in the connect descriptor specifies
// an instance known by the listener.
// - Check for an event in the listener.log file. -
I have tried to create the standby without the DG broker .However , I am getting this error in alert log at primary which I am not able to resolve.
PING[ARC6]: Heartbeat failed to connect to standby 'to_standby'. Error is 12505.
Mon Jul 04 12:41:35 2011
Error 12505 received logging on to the standby
Mon Jul 04 12:41:35 2011
Errors in file d:\oracle\p11\saptrace\background\p11_arc6_1904.trc:
ORA-12505: TNS:listener does not currently know of SID given in connect descriptor
PING[ARC6]: Heartbeat failed to connect to standby 'to_standby'. Error is 12505.
Pfile of Primary Server
*._B_TREE_BITMAP_PLANS=FALSE
*._IN_MEMORY_UNDO=FALSE
*._INDEX_JOIN_ENABLED=FALSE
*._OPTIM_PEEK_USER_BINDS=FALSE
*._OPTIMIZER_MJC_ENABLED=FALSE
*._SORT_ELIMINATION_COST_RATIO=10
*._TABLE_LOOKUP_PREFETCH_SIZE=0
*.archive_lag_target=0
*.background_dump_dest='D:\oracle\P11\saptrace\background'
*.compatible='10.2.0'
*.control_file_record_keep_time=30
*.control_files='D:\oracle\P11\origlogA\cntrl\cntrlP11.dbf','D:\oracle\P11\origlogB\cntrl\cntrlP11.dbf','D:\oracle\P11\sapdata1\cntrl\cntrlP11.dbf'
*.core_dump_dest='D:\oracle\P11\saptrace\background'
*.db_block_size=8192
*.db_cache_size=260938137
*.db_files=254
*.db_name='P11'
*.db_unique_name='P11_primary'
*.dml_locks=4000
*.event='10191 trace name context forever, level 1'
*.FAL_Client='to_primary'
*.FAL_Server='to_standby'
*.FILESYSTEMIO_OPTIONS='setall'
*.job_queue_processes=1
*.local_listener='(ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.1.104)(PORT = 1521))'
*.log_archive_config='dg_config=(P11_disaster,P11_primary)'
*.log_archive_dest_1='LOCATION=C:\oracle\P11\oraarch\P11arch VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=P11_primary'
*.log_archive_dest_2='SERVICE=to_standby LGWR ASYNC DELAY=5 VALID_FOR=(ONLINE_LOGFILES, PRIMARY_ROLE) DB_UNIQUE_NAME=P11_disaster'
*.log_archive_dest_state_1='enable'
*.log_archive_dest_state_2='ENABLE'
*.log_archive_max_processes=10
*.log_archive_min_succeed_dest=1
*.log_buffer=1048576
*.log_checkpoint_interval=0
*.log_checkpoints_to_alert=true
*.open_cursors=800
*.parallel_execution_message_size=16384
*.pga_aggregate_target=347917516
*.processes=80
*.query_rewrite_enabled='false'
*.recyclebin='off'
*.remote_login_passwordfile='exclusive'
*.remote_os_authent=true
*.replication_dependency_tracking=false
*.sessions=96
*.sga_max_size=521876275
*.shared_pool_reserved_size=26093813
*.shared_pool_size=300938137
*.sort_area_retained_size=0
*.sort_area_size=2097152
*.standby_file_management='AUTO'
*.star_transformation_enabled='true'
*.undo_management='AUTO'
*.undo_retention=43200
*.undo_tablespace='PSAPUNDO'
*.user_dump_dest='D:\oracle\P11\saptrace\usertrace'
Pfile of Standby Server
*._B_TREE_BITMAP_PLANS=FALSE
*._IN_MEMORY_UNDO=FALSE
*._INDEX_JOIN_ENABLED=FALSE
*._OPTIM_PEEK_USER_BINDS=FALSE
*._OPTIMIZER_MJC_ENABLED=FALSE
*._SORT_ELIMINATION_COST_RATIO=10
*._TABLE_LOOKUP_PREFETCH_SIZE=0
*.background_dump_dest='D:\oracle\P11\saptrace\background'
*.compatible='10.2.0'
*.control_file_record_keep_time=30
*.control_files='D:\oracle\P11\origlogA\cntrl\control01.ctl','D:\oracle\P11\origlogB\cntrl\control02.ctl','D:\oracle\P11\sapdata1\cntrl\control03.ctl'
*.core_dump_dest='D:\oracle\P11\saptrace\background'
*.db_block_size=8192
*.db_cache_size=155870822
*.db_files=254
*.db_name='P11'
*.db_unique_name='P11_disaster'
*.dml_locks=4000
*.event='10191 trace name context forever, level 1'
*.FAL_Client='to_standby'
*.FAL_Server='to_primary'
*.FILESYSTEMIO_OPTIONS='setall'
*.job_queue_processes=1
*.local_listener='(ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.1.102)(PORT = 1521))'
*.log_archive_config='DG_CONFIG= (P11_primary, P11_disaster)'
*.log_archive_dest_1='LOCATION=C:\oracle\P11\oraarch\P11arch VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=P11_disaster'
*.log_archive_dest_2='SERVICE=to_primary LGWR ASYNC DELAY=5 VALID_FOR=(ONLINE_LOGFILES, PRIMARY_ROLE) DB_UNIQUE_NAME=P11_primary'
*.log_archive_dest_state_1='enable'
*.log_archive_dest_state_2='enable'
*.log_archive_max_processes=10
*.log_buffer=1048576
*.log_checkpoint_interval=0
*.log_checkpoints_to_alert=true
*.open_cursors=800
*.parallel_execution_message_size=16384
*.pga_aggregate_target=207827763
*.processes=80
*.query_rewrite_enabled='false'
*.recyclebin='off'
*.remote_login_passwordfile='exclusive'
*.remote_os_authent=true
*.replication_dependency_tracking=false
*.sessions=96
*.sga_max_size=311741644
*.shared_pool_reserved_size=15587082
*.shared_pool_size=300870822
*.sort_area_retained_size=0
*.sort_area_size=2097152
*.standby_file_management='AUTO'
*.star_transformation_enabled='true'
*.undo_management='AUTO'
*.undo_retention=43200
*.undo_tablespace='PSAPUNDO'
*.user_dump_dest='D:\oracle\P11\saptrace\usertrace'
TNSnames of Primary File
# Filename......: tnsnames.ora
# Created.......: created by SAP AG, R/3 Rel. >= 6.10
# Name..........:
# Date..........:
# @(#) $Id: //bc/700-1_REL/src/ins/SAPINST/impl/tpls/ora/ind/TNSNAMES.ORA#4 $
P11.WORLD=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = 10.0.1.104)
(PORT = 1527)
(CONNECT_DATA =
(SID = P11)
(GLOBAL_NAME = P11.WORLD)
TO_STANDBY.WORLD=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = 10.0.1.102)
(PORT = 1527)
(CONNECT_DATA =
(SID = P11)
(GLOBAL_NAME = P11_DISASTER.WORLD)
TO_PRIMARY.WORLD=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = 10.0.1.104)
(PORT = 1527)
(CONNECT_DATA =
(SID = P11)
(GLOBAL_NAME = P11_PRIMARY.WORLD)
LISTENER_P11.WORLD=(address=(protocol= tcp)(host=10.0.1.104)(port= 1527))
Listener.ora of Primary
# Filename......: listener.ora
# Created.......: created by SAP AG, R/3 Rel. >= 6.10
# Name..........:
# Date..........:
# @(#) $Id: //bc/700-1_REL/src/ins/SAPINST/impl/tpls/ora/ind/LISTENER.ORA#4 $
ADMIN_RESTRICTIONS_LISTENER = on
LISTENER =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = IPC)
(KEY = P11.WORLD)
(ADDRESS=
(PROTOCOL = IPC)
(KEY = P11)
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = prod104)
(PORT = 1527)
STARTUP_WAIT_TIME_LISTENER = 0
CONNECT_TIMEOUT_LISTENER = 10
TRACE_LEVEL_LISTENER = OFF
Tnsnames.ora of Standby
# Filename......: tnsnames.ora
# Created.......: created by SAP AG, R/3 Rel. >= 6.10
# Name..........:
# Date..........:
# @(#) $Id: //bc/700-1_REL/src/ins/SAPINST/impl/tpls/ora/ind/TNSNAMES.ORA#4 $
# Filename......: tnsnames.ora
# Created.......: created by SAP AG, R/3 Rel. >= 6.10
# Name..........:
# Date..........:
# @(#) $Id: //bc/700-1_REL/src/ins/SAPINST/impl/tpls/ora/ind/TNSNAMES.ORA#4 $
P11.WORLD=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = 10.0.1.104)
(PORT = 1527)
(CONNECT_DATA =
(SID = P11)
(GLOBAL_NAME = P11.WORLD)
TO_STANDBY.WORLD=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = 10.0.1.102)
(PORT = 1527)
(CONNECT_DATA =
(SID = P11)
(GLOBAL_NAME = P11_STANDBY.WORLD)
TO_PRIMARY.WORLD=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = 10.0.1.104)
(PORT = 1527)
(CONNECT_DATA =
(SID = P11)
(GLOBAL_NAME = P11_PRIMARY.WORLD)
LISTENER_P11.WORLD=(address=(protocol= tcp)(host=10.0.1.102)(port= 1527))
Listener.ora of Standby
# Filename......: listener.ora
# Created.......: created by SAP AG, R/3 Rel. >= 6.10
# Name..........:
# Date..........:
# @(#) $Id: //bc/700-1_REL/src/ins/SAPINST/impl/tpls/ora/ind/LISTENER.ORA#4 $
ADMIN_RESTRICTIONS_LISTENER = on
LISTENER =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = IPC)
(KEY = P11.WORLD)
(ADDRESS=
(PROTOCOL = IPC)
(KEY = P11)
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = 10.0.1.102)
(PORT = 1527)
STARTUP_WAIT_TIME_LISTENER = 0
CONNECT_TIMEOUT_LISTENER = 10
TRACE_LEVEL_LISTENER = OFF
Please advice.
Regards
Edited by: dharm.singh on Jul 4, 2011 12:33 AMIt is working now after adding this entry
SID_LIST_LISTENER=(SID_LIST=(SID_DESC=(SID_NAME=P11)(ORACLE_HOME=D:\oracle\P11\102))) and also able to connect to primary to standby.
using command
sqlplus sys/****@to_standby as sysdba
However , the Primary alter log is showing many errors
MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
Mon Jul 04 14:56:05 2011
SMON: enabling cache recovery
Mon Jul 04 14:56:07 2011
Incremental checkpoint up to RBA [0x3e4.3.0], current log tail at RBA [0x3e4.3.0]
Mon Jul 04 14:56:08 2011
Error 1033 received logging on to the standby
Mon Jul 04 14:56:08 2011
Errors in file d:\oracle\p11\saptrace\background\p11_arc0_1532.trc:
ORA-01033: ORACLE initialization or shutdown in progress
Mon Jul 04 14:56:08 2011
LGWR: Setting 'active' archival for destination LOG_ARCHIVE_DEST_2
Error 1033 received logging on to the standby
Mon Jul 04 14:56:08 2011
Errors in file d:\oracle\p11\saptrace\background\p11_lns1_400.trc:
ORA-01033: ORACLE initialization or shutdown in progress
LGWR: Error 1033 creating archivelog file 'to_standby'
LNS: Failed to archive log 2 thread 1 sequence 996 (1033)
Mon Jul 04 14:56:08 2011
FAL[server, ARC0]: Error 1033 creating remote archivelog file 'to_standby'
FAL[server, ARC0]: FAL archive failed, see trace file.
Mon Jul 04 14:56:09 2011
Errors in file d:\oracle\p11\saptrace\background\p11_arc0_1532.trc:
ORA-16055: FAL request rejected
ARCH: FAL archive failed. Archiver continuing
Mon Jul 04 14:56:09 2011
Successfully onlined Undo Tablespace 1.
Mon Jul 04 14:56:09 2011
SMON: enabling tx recovery
Mon Jul 04 14:56:10 2011
Database Characterset is UTF8
Starting background process QMNC
QMNC started with pid=26, OS id=180
Mon Jul 04 14:56:16 2011
Completed: ALTER DATABASE OPEN
Mon Jul 04 14:57:00 2011
Shutting down archive processes
Mon Jul 04 14:57:05 2011
ARCH shutting down
ARCa: Archival stopped
Mon Jul 04 15:02:06 2011
Errors in file d:\oracle\p11\saptrace\background\p11_arc2_500.trc:
ORA-16143: RFS connections not allowed during or after terminal recovery
Mon Jul 04 15:02:06 2011
PING[ARC2]: Heartbeat failed to connect to standby 'to_standby'. Error is 16143.
p11arc0_1532.trc log file_
Dump file d:\oracle\p11\saptrace\background\p11_lns1_400.trc
Mon Jul 04 14:56:04 2011
ORACLE V10.2.0.2.0 - 64bit Production vsnsta=0
vsnsql=14 vsnxtr=3
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
Windows Server 2003 Version V5.2 Service Pack 2
CPU : 2 - type 8664, 1 Physical Cores
Process Affinity : 0x0000000000000000
Memory (Avail/Total): Ph:2627M/3319M, Ph+PgF:9964M/11161M
Instance name: p11
Redo thread mounted by this instance: 1
Oracle process number: 26
Windows thread id: 400, image: ORACLE.EXE (LNS1)
*** SERVICE NAME:() 2011-07-04 14:56:03.968
*** SESSION ID:(73.1) 2011-07-04 14:56:03.968
*** 2011-07-04 14:56:03.968 57032 kcrr.c
LNS1: initializing for LGWR communication
LNS1: connecting to KSR channel
Success
LNS1: subscribing to KSR channel
Success
*** 2011-07-04 14:56:04.031 57085 kcrr.c
LNS1: initialized successfully ASYNC=1
Destination is specified with ASYNC=61440
*** 2011-07-04 14:56:08.203 70857 kcrr.c
Sending online log thread 1 seq 996 [logfile 2] to standby
Opening logfile [logno 2]
LGWR: Archivelog for thread 1 sequence 996 will NOT be compressed
Redo shipping client performing standby login
OCISessionBegin failed -1
.. Detailed OCI error val is 1033 and errmsg is 'ORA-01033: ORACLE initialization or shutdown in progress
*** 2011-07-04 14:56:08.812 60639 kcrr.c
Error 1033 received logging on to the standby
Error 1033 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'to_standby'
Error 1033 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'to_standby'
ORA-01033: ORACLE initialization or shutdown in progress
*** 2011-07-04 14:56:08.843 60639 kcrr.c
LGWR: Error 1033 creating archivelog file 'to_standby'
*** 2011-07-04 14:56:08.859 58901 kcrr.c
kcrrfail: dest:2 err:1033 force:0 blast:1
*** 2011-07-04 14:56:11.296
*** 2011-07-04 14:56:11.296 70857 kcrr.c
Sending online log thread 1 seq 996 [logfile 2] to standby
Opening logfile [logno 2]
LGWR: Archivelog for thread 1 sequence 996 will NOT be compressed
*** 2011-07-04 14:56:11.796 70982 kcrr.c
Shutting down [due to no more ASYNC destination]
LNS1: Doing a channel reset for next time around...
Edited by: dharm.singh on Jul 4, 2011 2:31 AM -
Change Archive Log Mode, Restart instance, show ORA-12505 error!!!
We are still use Oracle 9i.
Now we want to use Symantec Backupexec 12 to backup oracle 9i.
In accordance with Backupexec's requirements. must change recovery mode to Archive Log Mode.
I use the Enterprise manager console to change it. and select restart immediately.
a error message be display in the step 2 (starting up the database). see below
ORA-12505: TNS:listener could not resolve SID given in connect descriptor
I'm a new oracle user. Hope you give me some suggestion.
THK.If database is down, then start it up directly login to server and
sqlplus "/ as sysdba"
startup;
Read this thread for first:
Re: ORA-12505, TNS:listener does not currently know of SID given in connect
The main problem is Your listner doesn't know the sid in connect descriptor.
Check
lsnrctl services
and look in tnsnames.ora file - is there such sercive defined in Your connection description.
issue tnsping in order to check is it able to read and connect correctly tnsnames.ora entry. -
ORA-12505 error with oracle 11.2.0.2 RAC Grid
Hi,
We have just installed Oracle 11.2.0.2 with oracle clusterware. Every thing went well during the installation, How ever after install we can not connect to the RAC instance from clients, through jdbc OR oracle sql developer.
We get following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor.
After the installation we created service (myrac) through OEM Cluster Managed Database Services tab. and We are using service name as following:
jdbc:oracle:thin:@orap-cluster.mydomain.com:1521:myrac
Here below is Service TNS string:
myrac = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = orap-cluster.mydomain.com)(PORT = 1521))(LOAD_BALANCE = YES)(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = myrac)))
Any help..??
CheersHI,
to clarify:
if you try with
<SERVER>:<PORT>:<SID> you are accessing the server with a database SID, whereas
<SERVER>:<PORT>/<SERVICE> will access a service.
The SCAN Listener only know of services, and not of database SIDs.
This is the reason you should always create separate services for your RAC databases, since only they are registered. If you connect via. a service the listener will forward you to (one of) the corresponding instances servicing the service.
Database SIDs are only known to the local listener on the node (not to the SCAN listener). And SIDs actually should not be used anymore.
However if you still need to access the SID you can use the virtual hostname of the server resp. the VIP address of the server in the connection and this will work:
<VIP>:<PORT>:<SID>
Note the SID of a RAC database is either myrac1 or myrac_1 (depending on administrator or policy managed database).
I still would recommend using services and not SIDs.
Furthermore the SCAN can only be resolved correctly by 11.2 clients.
Any pre 11.2 client should use an address_list containing the SCAN VIPs:
PRE112 =
(DESCRIPTION =
(LOAD_BALANCE=ON)
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.41)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.42)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.43)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = pre112)
If a application server does not understand / then try using the TNSNAMES entry directly:
jdbc:oracle:thin:@(DESCRIPTION = (LOAD_BALANCE=ON)(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.41)(PORT = 1521))(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.42)(PORT = 1521))(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.43)(PORT = 1521))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = pre112)))
Hope that helps
Regards
Sebastian -
ORA-12505, error when i tried to open the "Workflow Administrator" tool
i have installed Oracle content server 10g r3, but when i tried to open the "Workflow Administrator" tool i got the following error "ORA-12505, TNS: listener does not currently know of SID given in connect descriptor", so how can i solve this issue?
//hint i am using Oracle database 10gIs the rest of your UCM install running OK?
This implies that the JDBC connection is failing.
Are you running Workflow Administrator from the Admin Applets in the browser OR as a standalone application from command line (*nix) or Start menu (windows)
I think that the application would normally look in config.cfg and use the JDBC connection string given in there - this would include the SID. Can you tnsping the SID?
Tim -
Error: ORA-12505, error when i want to change database in webaccess.
Hello
I want to change the database for webaccess. I use a database in MS Sql Server now. for that I choose "Database Configuration Setup" from the Start menu,
Programs, Oracle - Primavera P6> Primavera P6 Web Access Utilities . I open this tool and in the 1st step I select Oracle in the 2nd step I entered the below informationusername and passsword: admuser
database name: pmdb (I create this database before and I tested that successfully in P6)
Database Host Address: *127.0.0.1*
Database Host Address: 1521 (I'm sure the port is 1521)
I didn't select SSL and Public Group ID set to 1
after i click on next one error returned that "ORA-12505, TNS:listener does not currently know of SID given in ..."
I added XE as SID before database name and correct database name to XE:PMDB. but I below error returned:
Error:Unable to resolve privileged username and password
Invalid connection string
format, a valid form at is: "host :port:sid"
Please verify the information you entered.wow, I found the solution.
you must set database name as XE
correct information are as below:
username and passsword: admuser
database name: XE
Database Host Address: *127.0.0.1*
Database Host Address: *1521*
then click next. -
Failed to sqlplus into ASM with the notorious ORA-12505 error
Hi guys,
I have a 2-node RAC testing environment and i have been having trouble trying to LOCALLY sqlplus into the ASM instance.
If I do "sqlplus sys/xxxxx@asm1", it just throws "ORA-12505:TNS: listener does not currently know of SID given in connect descriptor".
If I do "sqlplus / as SYSASM", it says "ORA-01031: insufficient privileges".
Can' figure out where I did wrong so really appreciate some help here (maybe in the listener file, i should give the GRID home for one of the ORACLE_HOME parameters)?
Here is the tns and listener file:
tnsnames.ora:
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = vbox-cluster)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORCL)
ASM1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = vbox-cluster)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SID = +ASM1)
listener.ora:
LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))) # line a
dded by Agent
LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1))))
# line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added by Agent
SID_LIST_LISTENER_ASM=
(SID_LIST=
(SID_DESC=
(SID_NAME=PLSExtProc)
(ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
(PROGRAM=extproc)
(SID_DESC=
(ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME=+ASM1)
)user11957149 wrote:
Hi guys,
I have a 2-node RAC testing environment and i have been having trouble trying to LOCALLY sqlplus into the ASM instance.
If I do "sqlplus sys/xxxxx@asm1", it just throws "ORA-12505:TNS: listener does not currently know of SID given in connect descriptor".
If I do "sqlplus / as SYSASM", it says "ORA-01031: insufficient privileges".
Can' figure out where I did wrong so really appreciate some help here (maybe in the listener file, i should give the GRID home for one of the ORACLE_HOME parameters)?
Here is the tns and listener file:
tnsnames.ora:
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = vbox-cluster)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORCL)
ASM1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = vbox-cluster)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SID = +ASM1)
listener.ora:
LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))) # line a
dded by Agent
LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1))))
# line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added by Agent
SID_LIST_LISTENER_ASM=
(SID_LIST=
(SID_DESC=
(SID_NAME=PLSExtProc)
(ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
(PROGRAM=extproc)
(SID_DESC=
(ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME=+ASM1)
)with regard to ASM instance, it is NEVER "online"
There is never any requirement to connect to ASM instance via SQL*Net.
Log onto DB Server directly & just start ASM instance
Maybe you are looking for
-
Problem with DG4ODBC and MSSQL
Oracle 11g XE, Apex 4.2.3 with DG4ODBC connecting to MSSQL Express on Windows 7. The above configuration gives poor performance (slow or no response). Simple queries work - "select itemname from tablea@dblink" Minor complex queries (and above ??) do
-
Error when initializing input variable
While trying to create a copy rule for the " assign " activity i get the "exception: could not retrieve message parts" has anybody seen this eorro before. Please help. Thanks
-
CR 2008 on Server 2008 R2 vs Windows Server 2003
I have posted a similar question before but have not beeen able to come up with a solution. We recently purchased cr2008 designer sp5 and installed it on server 2008 r2 and server 2003. We have web pages where CR is embedded in the code showing the r
-
How to avoid the repeated Print window, for range printing in a smartform
Hi I developed one smartform for the single/multiple Outbond deleviry. When I execute the query with same range then print window opened and after click print button Document priented. But when I try to execute the query with range suppose 0001 to 0
-
Imac G% tiger and Front Row Problem
Front Row do not recognize my Itunes library (tv shows, music etc...) How can I make it work I have Tiger and Imac g5(isisght) Thanks