Unable to connect my Linux Machine database
Dear all,
Hope you will be fine.
I'm having a problem to connect to PL / SQL Developer with my database available on the Oracle Linux virtual machine.
I have a windows 7 installed on my PC, I have installed a virtual machine and install oracle 11g on this machine. I have a database named orcl on this and I am trying to connect to the database with my windows machine. I assigned ip appropriate to both computer and created under the setting mentioned in my tnsnames.ora file. But when I go to connect it shows error ORA-12203: TNS: unable to connect to the destination. Please guide me where I am doing wrong so I'll do it properly.
ORCL_11G =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = tcp.world)
(PROTOCOL = TCP)
(Host = 192.168.0.100)
(Port = 1521)
)
)
(CONNECT_DATA = (SID = orcl)
)
)
Kind regards
Atif Zafar
Thank you all for your help. I solved this problem by mentioning the HOST in listener.ora and tnsnames.ora files. In fact, I have to assign the static IP address of my Linux machine and unfortunately not to mention the IP address in my two files. It is show HOST = localhost this is why it is forbidden to connect with the other machine. Now I connected successfully and it works fine now.
You mention linux machine IP here.
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = tcp.world)
(PROTOCOL = TCP)
(Host =192.168.0.100)
(Port = 1521)
)
)
(CONNECT_DATA = (SID = orcl)
)
Tags: Database
Similar Questions
-
RC-40201: unable to connect to the TEST database running adcfgclone.pl appsTier
Hi Experts,
While performing a cloning my instance of R12, I got RC-40201 error when I ran "adcfgclone.pl appsTier.
[appltst@oracleupk bin] $ perl adcfgclone.pl appsTier
Copyright (c) 2002 Oracle Corporation
Redwood Shores, California, USA
Applications Oracle rapid Clone
Version 12.0.0
adcfgclone Version 120.31.12010000.1
Enter the password for APPS:
Running:
/ data/appl_top/apps/apps_st/comn/clone/bin /... / JRE/bin/Java-Xmx600M - cp /data/appl_top/apps/apps_st/comn/clone/jlib/java:/data/appl_top/apps/apps_st/comn/clone/jlib/xmlparserv2.jar:/data/appl_top/apps/apps_st/comn/clone/jlib/ojdbc14.jar oracle.apps.ad.context.CloneContext EI/data/appl_top/apps/apps_st/comn/clone/bin /... /Context/Apps/CTXORIG.xml-valider - pairsfile /tmp/adpairsfile_24425.lst-stade/data/appl_top/apps/apps_st/comn/clone 2 > /tmp/adcfgclone_24425.err; ECHO $? > /tmp/adcfgclone_24425.res
Logfile located at /data/appl_top/apps/apps_st/comn/clone/bin/CloneContext_0912145803.log
Provide the values required for the creation of the new file APPL_TOP context.
Target System Hostname (virtual or normal) [oracleupk]:
SID data system target: TEST
Target database system [oracleupk] server node:
Target system Base Directory: / data / appl_top
Target system tools ORACLE_HOME directory [/ data/appl_top/apps/tech_st/10.1.2]:
Target Web ORACLE_HOME directory system [/ data/appl_top/apps/tech_st/10.1.3]:
Target system APPL_TOP directory [/ data/appl_top/apps/apps_st/appl]:
Target system COMMON_TOP directory [/ data/appl_top/apps/apps_st/comn]:
Target system Instance home directory [/ data/appl_top/inst]:
Target system service root [activated]:
Target Web Entry Point [active] System Services:
Target [active] System Web Application Services:
Target [active] Batch Processing Services system:
Other Services target system [off]:
You want to preserve the display [oracleupk:0.0] (y/n)? : n
Target display system [oracleupk:0.0]: oracleupk:1.0
System Target Pool [0-99] port: 80
Audit of the pool of port 80
fact: Port 80 pool is free
Report file is located at /data/appl_top/inst/apps/TEST_oracleupk/admin/out/portpool.lst
Information available at /data/appl_top/inst/apps/TEST_oracleupk/admin/out/portpool.lst complete port
RC-40201: unable to connect to the TEST database.
Create the new file APPL_TOP context of:
/Data/APPL_TOP/apps/apps_st/appl/ad/12.0.0/admin/template/adxmlctx.tmp
The new context APPL_TOP file was created:
/ Data/APPL_TOP/inst/Apps/TEST_oracleupk/Appl/admin/TEST_oracleupk. XML
Logfile located at /data/appl_top/apps/apps_st/comn/clone/bin/CloneContext_0912145803.log
Check the context Clone logfile /data/appl_top/apps/apps_st/comn/clone/bin/CloneContext_0912145803.log for more details.
Clone of fast running with the command:
Perl java /data/appl_top/apps/apps_st/comn/clone/bin/adclone.pl = / data/appl_top/apps/apps_st/comn/clone/bin /... /JRE mode = apply dialing = / data/appl_top/apps/apps_st/comn/clone point = appsTier = CUSTOM appctxtg=/data/appl_top/inst/apps/TEST_oracleupk/appl/admin/TEST_oracleupk.xml contextValidated = true showProgress method
Running:
Perl java /data/appl_top/apps/apps_st/comn/clone/bin/adclone.pl = / data/appl_top/apps/apps_st/comn/clone/bin /... /JRE mode = apply dialing = / data/appl_top/apps/apps_st/comn/clone point = appsTier = CUSTOM appctxtg=/data/appl_top/inst/apps/TEST_oracleupk/appl/admin/TEST_oracleupk.xml contextValidated = true showProgress method
Apps for password:
Start application layer apply - Fri Oct 12 15:01:20 2013
/ données/appl_top/apps/apps_st/comn/clone/bin /... /jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true -Doracle.installer.oui_loc=/oui -classpath /data/appl_top/apps/apps_st/comn/clone/jlib/xmlparserv2.jar:/data/appl_top/apps/apps_st/comn/clone/jlib/ojdbc14.jar:/data/appl_top/apps/apps_st/comn/clone/jlib/java:/data/appl_top/apps/apps_st/comn/clone/jlib/oui/OraInstaller.jar:/data/appl_top/apps/apps_st/comn/clone/jlib/oui/ewt3.jar:/data/appl_top/apps/apps_st/comn/clone/ jlib/Oui/share.jar:/data/appl_top/apps/apps_st/ Comn/clone/jlib/Oui/srvm.jar:/Data/APPL_TOP/Apps/apps_st/COMN/clone/jlib/ojmisc.jar oracle.apps.ad.clone.ApplyAppsTier EI /data/appl_top/inst/apps/TEST_oracleupk/appl/admin/TEST_oracleupk.xml-/data/appl_top/apps/apps_st/comn/clone - scene showProgress
Password APPS: log file located at /data/appl_top/inst/apps/TEST_oracleupk/admin/log/ApplyAppsTier_09121501.log
-79% completed
ERROR when executing apply...
Fri Oct 12 15:07:47 2013
ERROR: Cannot run /data/appl_top/apps/apps_st/comn/clone/bin/adclone.pl
Contents of the log file: -.
[AutoConfig error report]
The following report lists the errors autoconfig met in each
execution phase. Errors are grouped by directory and by phase.
The format of the report is:
< file name > < phase > < eventually return code >
[INSTALLATION STAGE]
AutoConfig could not successfully run the following scripts:
Directory: / data/appl_top/inst/apps/TEST_oracleupk/admin/install
adgendbc.sh INSTE8_SETUP 1
afcpnode.sh INSTE8_SETUP 1
afgcsreg.sh INSTE8_SETUP 1
txkWfClone.sh INSTALL_SETUP 1
[PROFILE PHASE]
AutoConfig could not successfully run the following scripts:
Directory: /data/appl_top/apps/tech_st/10.1.3/perl/bin/perl-je /data/appl_top/apps/tech_st/10.1.3/perl/lib/5.8.3-je /data/appl_top/apps/tech_st/10.1.3/perl/lib/site_perl/5.8.3-je /data/appl_top/apps/apps_st/appl/au/12.0.0/perl-je /data/appl_top/apps/tech_st/10.1.3/Apache/Apache/mod_perl/lib/site_perl/5.8.3/i686-linux-thread-multi /data/appl_top/inst/apps/TEST_oracleupk/admin/scripts/adexecsql.pl sqlfile = / data/appl_top/inst/apps/TEST_ oracleupk/admin /. install
afwebprf. SQL INSTE8_PRF 1
amscmprf. SQL INSTE8_PRF 1
amswebprf. SQL INSTE8_PRF 1
bisadmprf. SQL INSTE8_PRF 1
bisdblrp. SQL INSTE8_PRF 1
clnadmprf. SQL INSTE8_PRF 1
cncmprf. SQL INSTE8_PRF 1
cseadmprf. SQL INSTE8_PRF 1
csfadmprf. SQL INSTE8_PRF 1
csiadmprf. SQL INSTE8_PRF 1
eamadmprf. SQL INSTE8_PRF 1
fteadmprf. SQL INSTE8_PRF 1
ibywebprf. SQL INSTE8_PRF 1
icxwebprf. SQL INSTE8_PRF 1
oksfrmprf. SQL INSTE8_PRF 1
wshadmprf. SQL INSTE8_PRF 1
Directory: / data/appl_top/inst/apps/TEST_oracleupk/admin/install
adadmprf.sh INSTE8_PRF 1
admk80ln.sh INSTALL_PRF 1
afadmprf.sh INSTE8_PRF 1
afcpctx.sh INSTE8_PRF 1
afcpgsm.sh INSTE8_PRF 1 igccmprf.sh INSTE8_PRF 1 jtfictx.sh INSTE8_PRF 1 okladmprf.sh INSTE8_PRF 1 txkJavaMailerCfg.sh INSTE8_PRF 1 txkWebServicescfg.sh INSTE8_PRF 1 [APPLY PHASE]
AutoConfig could not successfully run the following scripts:
Directory: /data/appl_top/apps/tech_st/10.1.3/perl/bin/perl-je /data/appl_top/apps/tech_st/10.1.3/perl/lib/5.8.3-je /data/appl_top/apps/tech_st/10.1.3/perl/lib/site_perl/5.8.3-je /data/appl_top/apps/apps_st/appl/au/12.0.0/perl-je /data/appl_top/apps/tech_st/10.1.3/Apache/Apache/mod_perl/lib/site_perl/5.8.3/i686-linux-thread-multi/data/appl_top/inst/apps/TEST_oracleupk/admin/install adadmat.pl INSTE8_APPLY 1 Fate of 31 stateful auto-configuration
RC-50014: Fatal: failed to run the auto configuration service
Asked by oracle.apps.ad.clone.ApplyApplTop
ERROR: AutoConfig completed with errors. Check the logfile at /data/appl_top/inst/apps/TEST_oracleupk/admin/log/ApplyAppsTier_09121501.log for more details.
ApplyApplTop completed successfully.
# Check the race situation AutoConfig of ApplyApplTop
WARNING: The autoconfiguration service has completed with errors.
Please help me solve this problem, your prompt response will be highly appreciated.
-Thank you
Ankur
Audit of the pool of port 70
fact: Port pool 70 is free
You used port 70 for the node of the database layer, so you will need to use the same port pool (70 instead of 80) when running "perl adcfgclone.pl appsTier.
Thank you
Hussein
-
DOUBLE DB: ORA-17629: unable to connect to the remote database server
[oracle@ora11g1 ~] $ export ORACLE_SID = sales
[oracle@ora11g1 ~] $ rman target sys/sales@sales
Recovery Manager: release 11.2.0.1.0 - Production Wed Jun 5 13:00:15 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: SALES (DBID = 690066655)
RMAN > Connect auxiliary sys/salestby2@salestby2
connected to the auxiliary database: SALES (not mounted)
RMAN > CURRENT SPFILE DATABASE of TARGET duplicate FOR THE EVE OF the DATABASE
2 > DB_NAME SET = 'sales '.
3 > SET DB_UNIQUE_NAME = "salestby2".
4 > control_files='/u02/oradata/salestby2/control01.ctl','/u02/oradata/salestby2/control02.ctl SET'
5 > SET DB_FILE_NAME_CONVERT = "/ u02/oradata/sales /", "/ u02/oradata/salestby2 / '.
6 > SET LOG_FILE_NAME_CONVERT = "/ u02/oradata/sales /", "/ u02/oradata/salestby2 / ';
From duplicate Db 5 June 13
using the control file of the target instead of recovery catalog database
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID = 20 type of device = DISK
content of Script memory:
{
backup that copy reuse
TargetFile ' / auxiliary format of the u01/app/oracle/product/11.2.0/dbhome_1/dbs/orapwsales
' / u01/app/oracle/product/11.2.0/dbhome_1/dbs/orapwsalestby2' targetfile
' / u01/app/oracle/product/11.2.0/dbhome_1/dbs/spfilesales.ora' auxiliary format
' / u01/app/oracle/product/11.2.0/dbhome_1/dbs/spfilesalestby2.ora';
clone of SQL 'alter system set spfile = "/u01/app/oracle/product/11.2.0/dbhome_1/dbs/spfilesalestby2.ora";
}
execution of Script memory
From backup 5 June 13
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID = 58 type of device = DISK
RMAN-03009: failure of the backup command on the channel ORA_DISK_1 at 05/06/2013 13:05:26
ORA-17629: unable to connect to the remote database server
ORA-17627: ORA-01017: name of user and password invalid. connection refused
ORA-17629: unable to connect to the remote database server
continue other job steps, not a not working will not re-run
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of Db in dual at 05/06/2013 13:05:27
RMAN-03015: an error has occurred in the script stored memory Script
RMAN-03009: failure of the backup command on the channel ORA_DISK_1 at 05/06/2013 13:05:27
ORA-17629: unable to connect to the remote database server
ORA-17627: ORA-01017: name of user and password invalid. connection refused
ORA-17629: unable to connect to the remote database serverWelcome to the oracle forums!
Please take the time to go through [url https://forums.oracle.com/forums/ann.jspa?annID=1535] FAQ PAGE
Always after 4 version oracle numbers and details of the OS.
Post any request outside has put between.
\
Tags
Mark your questions answers if you give the answer
Password for the SYS user on primary and standby must be the same. Copy the master password for the backup server
SCP $ORACLE_HOME/dbs/orapwv112
: /u01/app/oracle/product/11.2/dbs/orapwdupv112 -
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
-
Unable to connect to the test database
Dear friends,
I'm working on a development database. I'm unable to connect from another pc.
1-name of the database and the instance: testdb
2. that's how I connect the local computer where the database resides
3 - I try to connect from another computer in this wayset oracle_sid=testdb sqlplus /nolog SQL*Plus: Release 10.2.0.4.0 - Production on Tue May 4 11:34:45 2010 Copyright (c) 1982, 2007, Oracle. All Rights Reserved. SQL> conn sys as sysdba Enter password: SQL> select * from dual; D - X SQL>
4. I tried to use the PC client tnspingset oracle_sid=testdb sqlplus /nolog SQL> conn sys Enter password: ERROR: ORA-12560: TNS:protocol adapter error SQL> conn sys/password@testdb ERROR: ORA-12154: TNS:could not resolve the connect identifier specified
5 - Here's the listener.ora to the client PCC:\Documents and Settings>tnsping testdb TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 04-MAY-2 010 11:37:00 Copyright (c) 1997, 2005, Oracle. All rights reserved. Used parameter files: D:\oracle\10g\NETWORK\ADMIN\sqlnet.ora TNS-03505: Failed to resolve name
6 - It's the tnsnames of the client PC# listener.ora Network Configuration File: D:\oracle\10g\NETWORK\ADMIN\listener.ora # Generated by Oracle configuration tools. SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = D:\oracle\10g) (PROGRAM = extproc) ) ) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = ip address)(PORT = 1521)) ) (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0)) ) )
7-# tnsnames.ora Network Configuration File: D:\oracle\10g\NETWORK\ADMIN\tnsnames.ora # Generated by Oracle configuration tools. xyz = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = ipaddress)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = xyz) ) ) abc = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = ip address)(PORT = 1521)) ) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = abc) ) ) EXTPROC_CONNECTION_DATA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0)) ) (CONNECT_DATA = (SID = PLSExtProc) (PRESENTATION = RO) ) ) testdb = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = ipaddress)(PORT = 1521)) ) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = testdb) ) )
8 - listener.ora from the computer where the database# 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)
9. I checked that all the Oracle services are running in the client and the server.# listener.ora Network Configuration File: D:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.ora # Generated by Oracle configuration tools. SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (GLOBAL_DBNAME = abc) (ORACLE_HOME = D:\oracle\product\10.2.0\db_1) (SID_NAME = abc) ) ) LISTENER = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = local host's ip address)(PORT = 1521)) )
Please me advice, everything looks okay in my eyes and when I do I don't have. I have been searching the net and went through a lot of articles but could not solve the problem.
Advice me please.
Edited by: user645399 may 4, 2010 11:49In 10g, listener can dynamically register a database. In your server listener.ora file you did manually. A particular reason for that?
What is the result of lsnrctl status on the server where this testdb? You see service testdb in the summary? -
Unable to connect to the Access database
Hello
I have already spent a lot of time on the problem connecting to my Access database and does not know why it won't work at all.
Here's the situation:
I use Dreamweaver CS3 with Access 2007 on a computer running Windows Vista (with IIS 7.0).
While my connection to the database is running on a Windows XP computer, it will not work on my vista computer! It still fails the test in the BD OLE connection window
Did someone come on this problem before? Help, please!
See if this helps:
http://blogs.IIS.NET/bills/archive/2007/5/21/1718507.aspx
--
Ken Ford
Adobe Community Expert Dreamweaver/ColdFusion
Fordwebs, LLC
http://www.fordwebs.com"nickbush" wrote in message
News:g8uat8$rv9$1@forums. Macromedia.com...
> Thank you Ken
>
> My Windows is Vista Home Premium 32-bit
>
> I tried the string that you suggested, but, unfortunately, I get a real
> "undefined error" (I hope this is the right translation because I use one
> French
(> version of Dreamweaver).
>
> Nico
>
>
> -
Unable to connect to the local database (without using the tnsname)
Hi guys
I have 2 database running on the local computer.
Db1 SID - orcl (install 1)
DB2 SID - unicode (later installation)
Today I stop the basic unicode and stop its respective services.
on the back
I did a sqlplus scott/tiger, I got an error
ORA-12560: TNS:protocol adapter error
That's why
I did a
Set ORACLE_SID = orcl
and I still get the same error.
-------------------------------------------------
So I'm the other way around. I orcl database stop, stop its services and database unicode to START and its services.
I disassembled the ORACLE_SID environment variable.
Now, I have in the command prompt
sqlplus scott/tiger
I am connected to the unicode database!
-------------------------------------------------
Now I ORCL stop unicode data and start...
and I have a
sqlplus scott/tiger@ORCL...
I HAVE no problem to connect to it...
--------------------------------------------------
May I ask why should I provide the TNSname ORCL database and I do not for the UNICODE of the databases...
Both are local on my database.
What's wrong?
Moreover, I am on XP.
Thank you!Set ORACLE_SID = orcl
sqlplus / as sysdba;
sys@ORCL > exitSet ORACLE_SID = unicode
sqlplus / as sysdba;
sys@Unicode > exitWell, we know that both your DBs are working properly.
So out of curiosity, I did cela tests...
(1) connect the two database and stop
(2) stop their services
(3) start only ORCL service
(4) close and reopen the command prompt to delete the var of environment ORACLE_SIDsqlplus / as sysdba;
Error: ORA-12560: TNS: Protocol adapter error(5) now I stop service ORCL
(6) (and I start the service of UNICODE)then I deliver
sqlplus / as sysdba;
sys@Unicode >It seems quite normal. In your registry value ORACLE_SID is, most likely, unicode, the last created: check it out, and if so, you can connect to unicode DB without setting ORACLE_SID, while you will need to set to connect to DB orcl.
When you have more than one DB, you set the ORACLE_SID environment variable before connecting either you use connection strings.
-
Unable to connect to the SQLite database in 9700
Hi all, I have created a dt application dynamically retrieves data from a database stored locally Sqlite the strange thing is that this application works correctly on my 9800 and a friend 9930 but every time that the use of this app on 9700, it is impossible to connect to the database. Here is the code that I use to connect to the database (same code has been compiled and tested on all 3 devices):
Connect to the database
try {}
Var myURI = URI.create("/store/home/user/documents/database.db");
DB = DatabaseFactory.openOrCreate (myURI);
} Catch (Exception e) {}
If (db == null) {}
Dialog.Alert ("unable to Access database');
}Is there something on the 9700 device that I don't know? Because this code works on other devices... Help please.
Finally, I discovered that it does not give the error if the database is stored on an SD card maybe 9700 does not support access sqlite on the memory of the device. Thanks for trying
-
Unable to connect to the remote database
Hi all
Please find below the details of the environment: -.
VM: VirtualBox VM 4.3.6
OS: CentOS 6.4
Database: Oracle 11.2.0.1 (3 installed DB COSP1, Cost1, RMANDB)
I am able to tnsping three DBs all: -.
[oracle@diamond ~] $ tnsping rmandb
AMT Ping utility for Linux: Version 11.2.0.1.0 - Production on 19 February 2014 14:21:14
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Setting files:/u02/app/oracle/product/11.2.0.1/db_1/network/admin/sqlnet.ora
TNSNAMES adapter used to resolve the alias
Try to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(Host = diamond.example.com) (Port = 1532))) (CONNECT_DATA = (SID = RMANDB)))
OK (10 ms)
[oracle@diamond ~] $
However, when I am trying to connect via sqlplus or rman catalog, it throws the following error: -.
[oracle@diamond ~] $ sqlplus rmancat/rmancat@rmandb
SQL * more: Production release 11.2.0.1.0 Wed Feb 19 14:20:37 2014
Copyright (c) 1982, 2009, Oracle. All rights reserved.
ERROR:
ORA-12505: TNS:listener is not currently of SID given in connect
descriptor ofEnter user name:
=========================================================================================
RMAN > Connect catalog rmancat/rmancat@RMANDB
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-04004: recovery catalog database error: ORA-12505: TNS:listener is not currently of SID given in connect descriptor
RMAN > exit
============================================================================================
Please suggest how I can make this connection.
sourav_biswas wrote:
[oracle@diamond ~] $ ps - ef | grep-i pmon
Oracle 2369 1 0 19:57? 00:00:00 ora_pmon_rmandb
Oracle 2498 1 0 19:59? 00:00:00 ora_pmon_cosp1
Oracle 2614 2301 20:00 0 pts/0 00:00:00 grep pmon-i
only two databases are actually up to the present
with * NIX questions
ORACLE_SID = cosp1 is different from ORACLE_SID = COSP1
When tnsnames.ora contains ORACLE_SID = COSP1 is NEVER connected to the instance named "cosp1." who is running as described above.
-
Unable to connect to the Cloud database Service: invalid Option SP2-0306
I'm trying to create Java Cloud Service, configured the database and Services of cloud storage, but when trying to create the Service of Cloud Java I get the following error:
"Could not connect to Database Service of Cloud Computing. Error details: [SP2-0306: invalid option.] Usage: CONN [ECT] [{connection...: SP2-0640: not connected}]. »
No idea where I was wrong?
.. .user had forbidden characters.
-
Unable to connect to a local database on the Android device.
Hi all
I use JDeveloper 11.1.2.4.0. Earlier, I tried to create a web service data control to access my database through an Android device and it worked great! Now I'm implementing JDBC. My code works perfectly in a web application. However when I try to implement on an Android device, nothing happens when I press my button (with ActionListener). It's my java code:
< code >
{} public void onButtonPress (ActionEvent actionEvent) Connection Conn = null; Statement stmt = null; ResultSet rs = null; Boolean exitFlag = false; Boolean executeResult; try {} String driver = "oracle.jdbc.driver.OracleDriver"; Class.forName (driver) .newInstance (); System.out.println ("connection to the database..."); String jdbcUrl = "jdbc:oracle:thin:@176.205.67.50:1529:trial"; Conn is DriverManager.getConnection (jdbcUrl, "just_test", "new");. stmt = conn.createStatement ();
String sql = "SELECT * from userfile" ;// where as username ' "' + getUsername() + ' ' ';"RS = stmt.executeQuery (sql); While (rs.next () & &! exitFlag) {} String dbusername = rs.getString ("USERNAME"); String dbpassword = rs.getString ("PASSWORD"); If (DBUserName.equalsIgnoreCase (getUsername ()) & & dbpassword.equalsIgnoreCase (getPassword ())) {} AdfmfContainerUtilities.invokeContainerJavaScriptFunction (AdfmfJavaUtilities.getFeatureName (), "adf.mf.api.amx.doNavigation", new Object() {"GB"}); exitFlag = true; } exitFlag = true; } {if(!exitFlag)} () AdfmfContainerUtilities.invokeContainerJavaScriptFunction "adf.sample.mobile.MobileFeature," "navigator.notification.alert," New Object() {"the user name or password entered is incorrect.", "", ({"Invalid username or password", "Ok"}); } } catch (Exception e) {} e.printStackTrace (); } {Finally try {} If (conn! = null) Conn.Close (); } catch (SQLException to) {} se.printStackTrace (); } } < code >
The code works fine. But is there anything else I should do before you deploy my application?
Thank you
Mohamed.
(By the way, see my old thread on this topic from September 2013):
( https://community.oracle.com/thread/2579300 )
You cannot connect with JDBC ADF Mobile to a remote server - security settings will not let you do this.
The right way to retrieve data from the remote database to a Mobile application of the ADF is through web services.
You can use JDBC in ADF Mobile to access an SQLite local database on the device. See the example of HR that comes with ADF Mobile.
-
Unable to connect to the cs6 database...
ftp server site connects to a domain addon folder... It works I can download download files
test ftp server connects with success in the folder root (public_html) I have the _MMServerScripts downloaded to the root.
database for the addon domain I can use it with php and javascript
Make a new user for this db...
When I try to connect to the db I name the connection to the MYSQL server, I use host local db username and password
It does not connect I get the test no file server 404 not found
(1) there is no server running on the server test.
2) the test specified for this site server is not mapped with the Http://lplc.co/-mmServerScripts/MMHTTP.php.URL. Make sure that the URL prefix is the root of the site.
I tried pointing to the test server to the domain addon folder same error...
It should work with a field companion what am I hurt?
What don't you understand? You can not connect Dreamweaver to CPanel. He does not like it for security reasons.
You need a local test server and the database that DW can connect locally.
When you have finished the construction & test your website locally, use phpMyAdmin to export your local SQL file.
Then go to phpMyAdmin of your remote server and import your SQL file into the database of your server.
See setting up a PHP environment in Dreamweaver
http://www.Adobe.com/devnet/Dreamweaver/articles/setup_php.html
Nancy O.
-
Unable to connect to my target database
I am trying to create a clone of my database named proddb using my backup RMNA production,
so, when I export ORACLE_SID = proddb
and then try to connect to my use of rman
RMAN target /.
its projection connected to database clonedb target
I checked the servicxes and there is no service not named clonedb and there is no entry in my tnsnames or listner file like clonedb...user9038728 wrote:
[Oracle@localhost ~] $ export ORACLE_SID = proddb
[oracle@localhost ~] $ export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1/[oracle@localhost ~] $ rman target sys/password
Recovery Manager: release 11.2.0.1.0 - Production on Fri Jan 6 11:27:13 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: CLONEDB (unassembled)
RMAN >
This is the output that I am getting...
Your Production/source/target database must be in an OPEN state & your new/clone/auxiliary instance must be started/no mounted State.
You need to connect you as below
$rman auxiliary sys/***@prod target.
Then the target will be production, you must export the auxiliaries SIDS and test connectivity TNS at the elementary level.
-
Unable to connect to remote oracle database! Help, please!
Hi all-
I am a new user Oracle and you are allowed to access a remote Oracle database, however I have problems with the installation/configuration program! I downloaded the driver Oracle and the Instant Client (11.2.0.2.0) because I need to use Microsoft Access for the data access (the Access database is already configured to the correct Oracle database). I'm under the impression that, to do this, I need to be able to use the ODBC Administrator to get all set up. Note: Im working on Windows XP.
I have questions:
-I don't seem to have installed Netca (which seems to be the recommended method to configure a connection). I have manually adjusted the TNSNAMES file. ORA file so it matches the database, but I'm not sure what would be my next step.
-When I open SqlPlus it wants a username and password, and I tried the default settings and got an error each time. I must first use SqlPlus, or establish a connection via ODBC first?
-Also: ODBC requires a TNS Service name, and I'm not sure, where this is established; something that would give the database manager?
I really just do not know how to configure this remote connection! I continue to run with obstacles and really want a reference "step by step" on the way to do it, if there is such a thing. Any help or additional reference material would be appreciated! I ran by the content of the forum, but have not been able to decode the jargon! Thank you very much in advance.
MarilynMsMonroe wrote:
Hi Ed-I use the Oracle's ODBC driver. I think there may be a problem with the TNSnames file because I tried to add this file as a"Data Source", and he also said that a connection could not be established. What do you mean by the MS implemented? A configuration of Data Source?
By MS implemented, I was referring to the MS ODBC for Oracle driver, against the Oracle ODBC for Oracle driver.
The "source of data file' has nothing to do with the tnsnames file. The ODBC Manager retains its DSN definitions in one of three places. "User DSN" is stored in the HKEY_LOCAL_USER registry, the "System DSN" definitions are stored in the HKEY_LOCAL_MACHINE registry and 'FILE DSN"definitions is stored in a file... I don't remember exactly where or what it's name is as I have (when he is forced to deal with odbc) just keep things simple and use "system dsn". But these aren't all the definitions of ODBC, Oracle tnsnames file.
The link between the ODBC DSN and the tnsnames.ora presents itself as a property of the ODBC definition. Suppose you have this for a tnsnames.ora entry:
houston = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = vmlnx01)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = orcl) ) )
Then
-When you set up your odbc dsn, if you use the MS for Oracle driver, you must specify 'houston' as the 'server '.
-When you set up your odbc dsn, if you use the Oracle odbc driver, you must specify "houston" as "the TNS Service name".>
Im going to try to post a modified version of the content of my TNSnames.ora file (for some reason any the "content is not allowed ' by the forum), but I would like to get some comments on whether the structure of the content may be the problem.
-
Unable to connect to the local database - ORA-12154
Hello
I'm having a problem with an Instance Oracle 10.2.0.3 on AIX 5.3.
Under Root and Oracle, I can connect to the instance by using only "sqlplus user/password', but it does not work under another ID.
It causes me problems as one of our suppliers has provided a large number of upgrade scripts to be run as a specific user, but fail to establish a database connection.
Anyone have any ideas on what could be the problem? I put my SID and Oracle Home properly, running oraenv, but it does not work.
Thank you
JamesCheck what unix groups the user is a member.
echo $ORACLE_SID
echo $TWO_TASKUse: -.
sqlplus username/password@database
Make sure that the database is listed in tnsnames.ora
Maybe you are looking for
-
My homepage will not stay as my home page. As soon as I close and Open firefox again it goes back to a search like google page, but it's not google. Summer goes for about 5 days now and its really frustrating.
-
WXP need for Satellite 2400-103 display driver
I have a Toshiba Satellite Pro 2400-103 ps240e. I formatted and downloaded Windows XP SP2 home edition, but I have problem of VGA driver. I need driver VGA in Windows XP SP2 home edition. VGA driver name is: SuperSavage IXC-166sp2.AI? ve looked on To
-
Windows 7 home premium 64-bit: error 800b0100 code
I tried to run windows update for a day now on my new computer, a Windows 7 Home premium 64-bit operating system. I get the error code "800b0100 Windows has encountered an unknown error." I've updated CheckSUR several times and I just get the same
-
Hi guys,. does anyone have a simple example of work on the application of Gps using locationlistener? I have problems to make it work Thank you guys
-
Have CC and LR CS6 photography, cannot enter serial for CS6 more
A few months ago, I bought LR CS6 with serial number. I installed on 2 machines, and it asked me to connect and would identify my purchase very well.I just bought CC photography Plan so I can get the latest updates LR CC and CC in Photoshop.So disabl