ASP SCRIPT CANT CONNECT TO ORACLE 9i via Oracle9i Client
Please help...i get an ORA-12154 when attempting to link access and oracle. what are some ways to correct this issue. i have researched as much as i understand..
error that occurrs is as follows:
[Microsoft][ODBC driver for Oracle][Oracle]ORA-12154: TNS:could not resolve service name(#12154...........
I HAVE installed and CONFIGURED ORACLE 9i ODBC DRIVER.
ODBC to Oracle works mit Excel or Access.
TNS works good with Developer 6i and SQL Plus.
Only my ASP VBSCRIPT on my IIS5 cant connect.
please can anyone help me !
Microsoft OLE DB Provider for ODBC Drivers- Fehler '80004005'
Aufgrund des Systemfehlers 5 (Oracle in Oracle9i_Client) konnte der angegebene Treiber nicht geladen werden.
/apps/connection/uxprod.asp, line 4
hat folgenden Inhalt:
<%
' ************* DB-Connection ***************
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open "DSN=UXPROD;UID=anwlist;Password=xxxx;"
%>
ODBC Driver with Excel works well; anly with ASP via
OLE DB ist doesnt work !
Similar Messages
-
Making connection to Oracle 9i via SQL Plus - Mark
Hi,
I am unable to connect to oracle 9i via dos prompt or SQL Plus.
I installed the satabase on windows.
The SID is obiwan. Please help, already browsed similar topics and its not happening.
Thanks in advance.The Listener is the process that is listening for incoming remote connections to the DB(s).
Database and Listener have Windows services, and services have to be started. Also, from DOS prompt you can do :
C:\> lsnrctl stat
to see if the Listener is active : the result should be the list of active DB(s).
To connect locally to the DB do the following :
C:\> set ORACLE_SID=obiwan
C:\> sqlplus "/ as sysdba"
The result should be something like SQL*Plus: Release 9.2.0.4.0 - Production on Dom Apr 10 16:58:32 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.4.0 - Production
SQL>If the result is something like : SQL*Plus: Release 9.2.0.4.0 - Production on Dom Apr 10 17:01:29 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to an idle instance.
SQL> then it means that the DB is not up. In this case try :
SQL> startup
That way you are connected as sysdba, you can startup and shutdown the DB, create users, and so on. Do not use this connection to create objects (tables, indexes and so on) :
create an user, using the command "create user" (See [url http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/toc.htm]Sql documentation), and connect as that user, for example
SQL> conn scott/tiger
or, at DOS prompt
C:\> sqlplus scott/tiger
If you create a TNS alias, as I said before, you can use that as connection string from DOS prompt
C:\> sqlplus scott/tiger@<TNS alias>
or using SqlPlus in the Oracle menu. -
How connect to oracle RAC via the RSG using port forwarding
Hi all,
I got a problem trying to connect to oracle RAC via the RSG using port forwarding .
on command line i sue to connect :
sqlplus 'username/password@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=firstRACnode)(PORT=1521))(ADDRESS=(PROTOCOL=tcp)(HOST=secondRACnode)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=MSDP)))'
but when using port forwarding i forward the port 1521 to a local port and make ssh to the DB node ( as normal with other nodes but not RAC) but it never work with me for this situation
can any one give me a help ifthere is any changes should be done on the server side , or if any one faced such a problem and found a solution
Thanks,
Prathap.782011 wrote:
I got a problem trying to connect to oracle RAC via the RSG using port forwarding .
on command line i sue to connect :
sqlplus 'username/password@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=firstRACnode)(PORT=1521))(ADDRESS=(PROTOCOL=tcp)(HOST=secondRACnode)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=MSDP)))'Not exactly sure what you are attempting, but if you doing port forwarding via ssh, the basic approach is as follows:
Step 1
Create a ssh tunnel from local machine to remote db server. Forward any local port (should not be a well known port or a port in the private/dynamic port range) to connect to the database server's listener port. If the ssh tunnel is into the db server itself, the connection (port forwarding) can be on localhost (as the Listener should be listening on it). Alternatively use a public IP of that db server.
Example (using OpenSSH on Ubuntu 9.4):
Local server port 1527 tunneled to port 1521 on database server 192.168.0.100 using o/s account johnd (we connect to port 1521 on db server via 127.0.0.1):
ssh -X -f -N -o ServerAliveInterval=3 -L 1527:127.0.0.1:1521 [email protected]
Step 2
Run sqlplus and connect to the local fowarded port on localhost, using the applicable connection settings (e.g SID/Service Name, etc).
sqlplus scott/tiger@"(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1527)) (CONNECT_DATA=(SID=orcl) (SERVER=dedicated)))"Note that the Listener must not hand our connection off - as the case would be when using RAC for example and connecting via a Service Name and not a SID. We need the Listener that accepts our connection to immediately hand us over to the database instance (via either a dedicated server or a shared server dispatcher process). -
Connecting to Oracle lite via VB6
Hello
is there a better way to connect to Oracle 10g when using VB6?
this is what I have:
Under references I am using Microsoft DAO 3.6 Object library
I do have a module where I defined the following public variables:
Public wsOracle As DAO.Workspace
Public cnOracle As DAO.Connection
Public strConn As String
and a function to alllow me to connect to the database:
Function ConnectDB()
On Error GoTo Error_DataBaseError
strConn = "ODBC;DSN=MY_DATABASE;UID=user;PWD=passr"
Set wsOracle = DBEngine.CreateWorkspace("", "admin", "admin", dbUseODBC)
wsOracle.DefaultCursorDriver = dbUseClientBatchCursor
Set cnOracle = wsOracle.OpenConnection("", dbDriverNoPrompt, False, strConn)
Error_DataBaseError:
If Err <> 0 Then
Call ErrorCatching("ConnectDB ()")
End If
End Function
It seems to work but I am having issues, two apps are connected to the same Database one is in power builder y the other in VB6 after a certain time of inactivity I get timed out from the VB app and this gets also into the power builder app.
but if one app is open for a long time it seems to work just fine. any ideas why?
I read that I can use the Oracle Lite 40 ODBC Driver
but I can't seem to find a way to do the call from VB6
any ideas?
any enlightenment will be appreciatedUnfortunately, in 2.0 beta, the Infobus Data Form wizard
connection editor only supported the Oracle Thin, OCI7 and OCI8
drivers. For 2.0 production, Oracle Lite and the JDBC-ODBC bridge
will also be supported.
Regards,
JDeveloper Team
Poorna Byri (guest) wrote:
: Hi,
: Can we can connect to Oracle Lite 3.5 from Oracle JDeveloper2.0
: Beta using Infobus Data Form. When I tried to create a file
based
: on "Infobus Based Data Form" wizard it is not displaying Oracle
: Lite 3.5 driver. Can I create a TNS name for Oracle Lite 3.5
: database.
: Any help.
: Thanks.
: Poorna Byri
null -
Tnsping doesnt work. cant connect to oracle on linux from windows client
Installed Oracle 11g on Linux VM. Tried connecting from Tora/SqlDeveloper from Windows machine, but fails. TNSPING fails. PING works fine. Any idea how to resolve below issue?
Below is the info and checks made :
[oracle@oraclelinux6 admin]$ more *.ora
listener.ora
# listener.ora Network Configuration File: /apps/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = /apps/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = orcl)
LISTENERLX =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
ADR_BASE_LISTENER = /apps/app/oracle
sqlnet.ora
# sqlnet.ora Network Configuration File: /apps/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
ADR_BASE = /apps/app/oracle
SQLNET.EXPIRE_TIME=10
SQLNET.INBOUND_CONNECT_TIMEOUT=240
tnsnames.ora
# tnsnames.ora Network Configuration File: /apps/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = orcl)
[oracle@oraclelinux6 admin]$
[oracle@oraclelinux6 admin]$ ifconfig
eth1 Link encap:Ethernet HWaddr 08:00:27:CA:B7:5D
inet addr:192.168.1.121 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:feca:b75d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:243465 errors:0 dropped:0 overruns:0 frame:0
TX packets:143708 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:347575845 (331.4 MiB) TX bytes:9778008 (9.3 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:36859 errors:0 dropped:0 overruns:0 frame:0
TX packets:36859 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2400424 (2.2 MiB) TX bytes:2400424 (2.2 MiB)
virbr0 Link encap:Ethernet HWaddr 52:54:00:8D:63:05
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
[oracle@oraclelinux6 admin]$ hostname
oraclelinux6.localdomain
[oracle@oraclelinux6 admin]$ more /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.0.2.15 oraclelinux6.localdomain
[oracle@oraclelinux6 admin]$
[oracle@oraclelinux6 admin]$ sqlplus system@orcl
SQL*Plus: Release 11.2.0.1.0 Production on Mon Dec 2 08:19:59 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter password:
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor
Enter user-name: system
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> set head off
SQL> select * from v$instance;
1 orcl
oraclelinux6.localdomain
11.2.0.1.0 01-DEC-13 OPEN NO 1 STOPPED
ALLOWED NO ACTIVE PRIMARY_INSTANCE NORMAL NO
SQL> select * from v$database;
1360274593 ORCL 26-NOV-13 945184 26-NOV-13
1 15-AUG-09 NOARCHIVELOG 1071075
1033565 CURRENT 26-NOV-13 1283 1094699
02-DEC-13 NOT ALLOWED 26-NOV-13 READ WRITE MAXIMUM PERFORMANCE
UNPROTECTED ENABLED 1360252065 1360252065 PRIMARY
945184 DISABLED NOT ALLOWED DISABLED NONE NO NO
NO NO 13
Linux x86 64-bit
2 2 1094771
NO NO NO orcl
0 DISABLED
0
NO NO
LSNRCTL> show inbound_connect_timeout
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12535: TNS:operation timed out
TNS-12560: TNS:protocol adapter error
TNS-00505: Operation timed out
LSNRCTL>
[oracle@oraclelinux6 admin]$ tnsping orcl
TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 02-DEC-2013 08:11:34
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Used parameter files:
/apps/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = orcl)))
OK (0 msec)
<msg time='2013-12-02T08:11:55.728-08:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
host_addr='10.0.2.15'>
<txt>TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
</txt>
</msg>
<msg time='2013-12-02T08:13:23.444-08:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
host_addr='10.0.2.15'>
<txt>02-DEC-2013 08:13:23 * (CONNECT_DATA=(SERVICE_NAME=orcl)(CID=(PROGRAM=sqlplus)(HOST=oraclelinux6.localdomain)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=60806)) * establish * orcl * 12514
</txt>
</msg>
<msg time='2013-12-02T08:13:23.444-08:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
host_addr='10.0.2.15'>
<txt>TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
</txt>
</msg>
<msg time='2013-12-02T08:19:54.141-08:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
host_addr='10.0.2.15'>
<txt>02-DEC-2013 08:19:54 * service_update * orcl * 0
</txt>
</msg>
<msg time='2013-12-02T08:20:00.146-08:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
host_addr='10.0.2.15'>
<txt>02-DEC-2013 08:20:00 * service_update * orcl * 0
</txt>
</msg>
<msg time='2013-12-02T08:20:03.639-08:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
host_addr='10.0.2.15'>
<txt>02-DEC-2013 08:20:03 * (CONNECT_DATA=(SERVICE_NAME=orcl)(CID=(PROGRAM=sqlplus)(HOST=oraclelinux6.localdomain)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=60970)) * establish * orcl * 12514
</txt>
</msg>
<msg time='2013-12-02T08:20:03.639-08:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
host_addr='10.0.2.15'>
<txt>TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
</txt>
</msg>
[oracle@oraclelinux6 admin]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 02-DEC-2013 08:25:38
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12535: TNS:operation timed out
TNS-12560: TNS:protocol adapter error
TNS-00505: Operation timed out
[oracle@oraclelinux6 admin]$
[oracle@oraclelinux6 admin]$ lsnrctl status LISTENERLX
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 02-DEC-2013 08:29:23
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENERLX
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 02-DEC-2013 07:55:29
Uptime 0 days 0 hr. 33 min. 54 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /apps/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /apps/app/oracle/product/11.2.0/dbhome_1/log/diag/tnslsnr/oraclelinux6/listenerlx/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "orcl.localdomain" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB.localdomain" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@oraclelinux6 admin]$
CLIENT SIDE :
C:\Windows\system32>ping 192.168.1.121
Pinging 192.168.1.121 with 32 bytes of data:
Reply from 192.168.1.121: bytes=32 time<1ms TTL=64
Reply from 192.168.1.121: bytes=32 time<1ms TTL=64
Reply from 192.168.1.121: bytes=32 time<1ms TTL=64
Reply from 192.168.1.121: bytes=32 time<1ms TTL=64
Ping statistics for 192.168.1.121:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
C:\Windows\system32>tnsping ORACLELINUX6
TNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 03-DEC-2013 01:30:13
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
D:\app\Laasya\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.121)(PORT = 1521)) (C
ONNECT_DATA = (SERVICE_NAME = orcl)))
TNS-12535: TNS:operation timed out
# tnsnames.ora Network Configuration File: D:\app\Laasya\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
LISTENER_ORCL =
(ADDRESS = (PROTOCOL = TCP)(HOST = Laasya-PC)(PORT = 1522))
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = Laasya-PC)(PORT = 1522))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
ORACLELINUX6 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.121)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = orcl)f0c7e0f7-dab5-4b63-a36c-04b7e8eb552d wrote:
Installed Oracle 11g on Linux VM. Tried connecting from Tora/SqlDeveloper from Windows machine, but fails. TNSPING fails. PING works fine. Any idea how to resolve below issue?
Below is the info and checks made :
[oracle@oraclelinux6 admin]$ more *.ora
listener.ora
# listener.ora Network Configuration File: /apps/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = /apps/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = orcl)
LISTENERLX =
It is pointless, and just adds to the confusion, to name your listener anything other than the default name of LISTENER
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
Client requests to 'localhost' (or its ip address of 127.0.0.1) never leave the client machine. Hence, any listener configured for that address will never receive a request from any other machine.
ADR_BASE_LISTENER = /apps/app/oracle
sqlnet.ora
# sqlnet.ora Network Configuration File: /apps/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
ADR_BASE = /apps/app/oracle
SQLNET.EXPIRE_TIME=10
SQLNET.INBOUND_CONNECT_TIMEOUT=240
tnsnames.ora
# tnsnames.ora Network Configuration File: /apps/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
See comment above regarding 'localhost'.
(CONNECT_DATA =
(SERVICE_NAME = orcl)
[oracle@oraclelinux6 admin]$
[oracle@oraclelinux6 admin]$ ifconfig
eth1 Link encap:Ethernet HWaddr 08:00:27:CA:B7:5D
inet addr:192.168.1.121 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:feca:b75d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:243465 errors:0 dropped:0 overruns:0 frame:0
TX packets:143708 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:347575845 (331.4 MiB) TX bytes:9778008 (9.3 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:36859 errors:0 dropped:0 overruns:0 frame:0
TX packets:36859 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2400424 (2.2 MiB) TX bytes:2400424 (2.2 MiB)
virbr0 Link encap:Ethernet HWaddr 52:54:00:8D:63:05
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
[oracle@oraclelinux6 admin]$ hostname
oraclelinux6.localdomain
[oracle@oraclelinux6 admin]$ more /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.0.2.15 oraclelinux6.localdomain
where did that 10.0.2.15 address come from? You don't have any network adapters configured for that address
[oracle@oraclelinux6 admin]$
[oracle@oraclelinux6 admin]$ sqlplus system@orcl
SQL*Plus: Release 11.2.0.1.0 Production on Mon Dec 2 08:19:59 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter password:
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor
A well-documented error.
see: http://edstevensdba.wordpress.com/2011/03/19/ora-12514/ (ora-12514 Listener does not know of requested service )
Enter user-name: system
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Since you did not use a tns service name ('@orcl') this was a bequeth connection to a local database.
SQL> set head off
SQL> select * from v$instance;
1 orcl
oraclelinux6.localdomain
11.2.0.1.0 01-DEC-13 OPEN NO 1 STOPPED
ALLOWED NO ACTIVE PRIMARY_INSTANCE NORMAL NO
SQL> select * from v$database;
1360274593 ORCL 26-NOV-13 945184 26-NOV-13
1 15-AUG-09 NOARCHIVELOG 1071075
1033565 CURRENT 26-NOV-13 1283 1094699
02-DEC-13 NOT ALLOWED 26-NOV-13 READ WRITE MAXIMUM PERFORMANCE
UNPROTECTED ENABLED 1360252065 1360252065 PRIMARY
945184 DISABLED NOT ALLOWED DISABLED NONE NO NO
NO NO 13
Linux x86 64-bit
2 2 1094771
NO NO NO orcl
0 DISABLED
0
NO NO
LSNRCTL> show inbound_connect_timeout
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12535: TNS:operation timed out
TNS-12560: TNS:protocol adapter error
TNS-00505: Operation timed out
LSNRCTL>
[oracle@oraclelinux6 admin]$ tnsping orcl
TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 02-DEC-2013 08:11:34
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Used parameter files:
/apps/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = orcl)))
OK (0 msec)
<msg time='2013-12-02T08:11:55.728-08:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
host_addr='10.0.2.15'>
<txt>TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
</txt>
</msg>
<msg time='2013-12-02T08:13:23.444-08:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
host_addr='10.0.2.15'>
<txt>02-DEC-2013 08:13:23 * (CONNECT_DATA=(SERVICE_NAME=orcl)(CID=(PROGRAM=sqlplus)(HOST=oraclelinux6.localdomain)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=60806)) * establish * orcl * 12514
</txt>
</msg>
<msg time='2013-12-02T08:13:23.444-08:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
host_addr='10.0.2.15'>
<txt>TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
</txt>
</msg>
<msg time='2013-12-02T08:19:54.141-08:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
host_addr='10.0.2.15'>
<txt>02-DEC-2013 08:19:54 * service_update * orcl * 0
</txt>
</msg>
<msg time='2013-12-02T08:20:00.146-08:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
host_addr='10.0.2.15'>
<txt>02-DEC-2013 08:20:00 * service_update * orcl * 0
</txt>
</msg>
<msg time='2013-12-02T08:20:03.639-08:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
host_addr='10.0.2.15'>
<txt>02-DEC-2013 08:20:03 * (CONNECT_DATA=(SERVICE_NAME=orcl)(CID=(PROGRAM=sqlplus)(HOST=oraclelinux6.localdomain)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=60970)) * establish * orcl * 12514
</txt>
</msg>
<msg time='2013-12-02T08:20:03.639-08:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='oraclelinux6.localdomain'
host_addr='10.0.2.15'>
<txt>TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
</txt>
</msg>
[oracle@oraclelinux6 admin]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 02-DEC-2013 08:25:38
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12535: TNS:operation timed out
TNS-12560: TNS:protocol adapter error
TNS-00505: Operation timed out
[oracle@oraclelinux6 admin]$
[oracle@oraclelinux6 admin]$ lsnrctl status LISTENERLX
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 02-DEC-2013 08:29:23
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENERLX
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 02-DEC-2013 07:55:29
Uptime 0 days 0 hr. 33 min. 54 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /apps/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /apps/app/oracle/product/11.2.0/dbhome_1/log/diag/tnslsnr/oraclelinux6/listenerlx/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
See previous comments regarding localhost and 127.0.0.1
Services Summary...
Service "orcl.localdomain" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB.localdomain" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@oraclelinux6 admin]$
CLIENT SIDE :
C:\Windows\system32>ping 192.168.1.121
Pinging 192.168.1.121 with 32 bytes of data:
Reply from 192.168.1.121: bytes=32 time<1ms TTL=64
Reply from 192.168.1.121: bytes=32 time<1ms TTL=64
Reply from 192.168.1.121: bytes=32 time<1ms TTL=64
Reply from 192.168.1.121: bytes=32 time<1ms TTL=64
Ping statistics for 192.168.1.121:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
C:\Windows\system32>tnsping ORACLELINUX6
TNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 03-DEC-2013 01:30:13
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
D:\app\Laasya\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.121)(PORT = 1521)) (C
ONNECT_DATA = (SERVICE_NAME = orcl)))
TNS-12535: TNS:operation timed out
# tnsnames.ora Network Configuration File: D:\app\Laasya\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
LISTENER_ORCL =
(ADDRESS = (PROTOCOL = TCP)(HOST = Laasya-PC)(PORT = 1522))
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = Laasya-PC)(PORT = 1522))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
ORACLELINUX6 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.121)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = orcl)
You've thrown out a huge amount of detailed data, but showing a variety of errors, and combinations. Overall, I get the impression you are confusing remote vs. local connections. Please read the following, then come back and let's focus on one error at a time.
see: http://edstevensdba.wordpress.com/2011/02/09/sqlnet_overview/ (Help! I can’t connect to my database )
see: http://edstevensdba.wordpress.com/2011/02/16/sqlnet_client_cfg/ ( Help! I can’t connect to my database (part duex) ) -
Cant connect to oracle error 12154
It appears I also have a simple cannot connect to the oracle database error when starting to use crystal reports from my desk top.
Have installed the oracle client 10.2.0.4 and can connect using oracle net manager and the tnsnames.ora file was created. How does crystal reports know what tnsnames file to look for? I am using the oracle server option from crystal reports.
This should be pretty straight forward but very little doc on this specific area.
thanks
bhmHi
Got the direct connection to work by removing the oracle client and crystal reports.
Re-installed another oracle client (same version 10.2.0.1 but has more options) and all connections worked.
Then reinstalled crystal reports and can connect directly using the SAP database password. Not sure why the first install did not work, had sqlplus, odbc etc. Some areas worked others did not.
I am going to do some investigation into the sap connectors to understand what exactly that gets us.
thanks
brad -
Cant connect to Oracle database using oracle db client
Hi All,
I recently created a virtual machine running windows server 2008 on my windows 7 host. Oracle database 11g is already installed on host OS(windows 7) and I have installed oracle 11g client on the guest OS(windows server 2008) and trying to connect to oracle database from remote server using oracle client but getting this error:
ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATAI am trying to connect using oracle client as below:
C:\Users\Administrator>SET ORACLE_SID = HR84DEV
C:\Users\Administrator>SQLPLUS /NOLOG
SQL*Plus: Release 11.2.0.1.0 Production on Fri Feb 10 06:16:34 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
SQL> CONNECT SYSADM/[email protected]
ERROR:
ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
I have created database with name - HR84DEV
HOST ip address is - 192.168.56.1
I googled this error and as most of resources/blogs talked about having correct entry on listner.ora and tnsnames.ora file, I did the changes on both of these files accordingly.
PFB the cotent of both of these files:
tnsnames.ora
# tnsnames.ora Network Configuration File: C:\MyApps\Oracle\product\11.2.0\dbhome_\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.
LISTENER_ORCL =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.56.1)(PORT = 1521))
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
HR84DEV =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.56.1)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = HR84DEV)
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
listner.ora
# listener.ora Network Configuration File: C:\MyApps\Oracle\product\11.2.0\dbhome_\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\MyApps\Oracle\product\11.2.0\dbhome_)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\MyApps\Oracle\product\11.2.0\dbhome_\bin\oraclr11.dll")
(SID_DESC =
(SID_NAME = HR84DEV)
(ORACLE_HOME = C:\MyApps\Oracle\product\11.2.0\dbhome_)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\MyApps\Oracle\product\11.2.0\dbhome_\bin\oraclr11.dll")
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.56.1)(PORT = 1521))
ADR_BASE_LISTENER = C:\MyApps\Oracle
Please not that I dont have any problem in connect to database locally.Thanks Nicolas,
Actually, there was a problem with my oracle client installation. I uninstalled it and then installed back again but still, even after following your instructions I get some error.
Here what I did:
Created tnsnames.ora file as below:
HR84DEV =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.56.1)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = HR84DEV)
Placed it under appropriate directory and then checked the connection with database using the command shown below:
C:\Users\Administrator>tnsping HR84DEV
TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 10-FEB-2
012 08:42:03
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
C:\MyApps\Administrator\product\11.2.0\client_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = 192.168.56.1)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = HR84DEV)))
OK (20 msec)
Then tried to connect to database as below:
C:\Users\Administrator>SET ORACLE_SID=HR84DEV
C:\Users\Administrator>SQLPLUS /NOLOG
SQL*Plus: Release 11.2.0.1.0 Production on Fri Feb 10 08:25:56 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
SQL> CONNECT SYSADM/SYSADM@HR84DEV
ERROR:
ORA-28547: connection to server failed, probable Oracle Net admin error
But still getting error.
I Googled this error and tried to figure out what the problem is and came across the possible cause which is because I haven't specify that the service should run as a user who is in domain admin group.
well, I am not really sure about this and dont know what user name and password I should enter in OracleserviceHR84DEV-properties-log on-this account.
do I really need to set this? -
Connection to Oracle XE via IIS/ASP app was working then stopped
I am prototyping an application for my new management here so that I can recommend they use Oracle XE.
The connection to the Oracle XE database appears to have stopped working, via an IIS/ASP application I wrote. I can still connect through ODBC using native MS Access to Oracle XE, when logged into XP, its just when I try to log in using the app via IIS I get the following error:
Unable to establish connection to database.
Error information:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E4D)
[Oracle][ODBC][Ora]ORA-12154: TNS:could not resolve the connect identifier specified
It was working for a while, like the whole first week. It might be related to the fact that that I finally rebooted, not sure.
I have tried many, many things. I made the IUSR account an admin on the box hoping that maybe it had just lost access to the local ODBC/TNSNAMES. Right now all the components are local to my development box, from the IIS server to the Oracle eXtended Edition database (XE, free). Like I said, it was working. I did have this same message I believe early on, which turned out due to the fact that my ODBC DSN was a local DSN, instead of a System DSN, which I overcame at that time. But it just started happening again, possibly after a reboot.
I also tried switching to a local MS Access database, and I got a similar message. I moved the Access db to c: root, and it appears to work, so it appears to be a file/directory access issue.
But I'm not sure how to resolve it because I would much prefer to use the Oracle database.
Thoughts?As far as the connect string goes, I'm not sure exactly what to specify to you.
I am using the default connect string that comes when you install XE.
I.e., "XE".
I suspect this might be a path issue for the virtual account that is used by IIS sessions. As you may know, when IIS runs, it logs the web user into the box using a dummy account, typically prefixed with the string "IUSR".
Although I made this account an admin to the box, I think I may need to add some of the Oracle Client directories to the path which is accessed by this IUSR account. The problem is, the acount, with its password, was set up by default and I don't know what its password is. But I think that I could try to adde Oracle's home path to the default system path, what do you think?
In other words, I don't think the XE connection libraries are available to this dummy IIS account. The strange thing is, it worked for a while, ostensibly till I rebooted.
Know also that I am not using the Oracle Client per se, although I did install it and try it with mixed results. I am just using the Oracle OLE DB ODBC that appeared when I installed the Oracle XE server itself. -
How to connect to Oracle RAC via SCAN
I just finished Oracle RAC install but I cannot connect via the SCAN name from a remote client - only via the VIP:
$ sqlplus system/[email protected]:1521/racdb.development.info
SQL*Plus: Release 11.2.0.3.0 Production on Fri May 25 15:14:13 2012
Copyright (c) 1982, 2011, Oracle. All rights reserved.
ERROR:
ORA-12545: Connect failed because target host or object does not exist
This is Oracle 11r2 on Unbreakable Linux 6.2. The sqlplus above is from Instant Client 11.2. Further info is:
$ ./srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node racnode1
SCAN VIP scan2 is enabled
SCAN VIP scan2 is running on node racnode2
SCAN VIP scan3 is enabled
SCAN VIP scan3 is running on node racnode2
./srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node racnode1
$ nslookup rac-scan
Server: 172.20.0.15
Address: 172.20.0.15#53
Name: rac-scan.xxx.local
Address: 172.20.0.213
Name: rac-scan.xxx.local
Address: 172.20.0.214
Name: rac-scan.xxx.local
Address: 172.20.0.210
on racnode1:
$ /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:1A:A0:96:A6:B2
inet addr:172.20.0.221 Bcast:172.20.0.255 Mask:255.255.255.0 <--- public ip
inet6 addr: fe80::21a:a0ff:fe96:a6b2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9458999 errors:0 dropped:0 overruns:0 frame:0
TX packets:14852588 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4001261935 (3.7 GiB) TX bytes:1196090235 (1.1 GiB)
Interrupt:20 Memory:fdfc0000-fdfe0000
eth0:1 Link encap:Ethernet HWaddr 00:1A:A0:96:A6:B2
inet addr:172.20.0.212 Bcast:172.20.0.255 Mask:255.255.255.0 <---- VIP
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:20 Memory:fdfc0000-fdfe0000
eth0:2 Link encap:Ethernet HWaddr 00:1A:A0:96:A6:B2
inet addr:172.20.0.214 Bcast:172.20.0.255 Mask:255.255.255.0 <---- one of the SCAN ips
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:20 Memory:fdfc0000-fdfe0000
eth1 Link encap:Ethernet HWaddr 90:E2:BA:0F:F9:8F
inet addr:10.0.0.2 Bcast:10.0.0.255 Mask:255.255.255.0 <---- private interconnect
inet6 addr: fe80::92e2:baff:fe0f:f98f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:26461881 errors:4 dropped:0 overruns:0 frame:2
TX packets:33628826 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4053295644 (3.7 GiB) TX bytes:695537051 (663.3 MiB)
on racnode2
eth0 Link encap:Ethernet HWaddr 00:1A:A0:96:A4:5B
inet addr:172.20.0.174 Bcast:172.20.0.255 Mask:255.255.255.0 <--- public IP
inet6 addr: fe80::21a:a0ff:fe96:a45b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3233473 errors:0 dropped:0 overruns:0 frame:0
TX packets:1766459 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:41109717 (39.2 MiB) TX bytes:179509273 (171.1 MiB)
Interrupt:20 Memory:fdfc0000-fdfe0000
eth0:1 Link encap:Ethernet HWaddr 00:1A:A0:96:A4:5B
inet addr:172.20.0.211 Bcast:172.20.0.255 Mask:255.255.255.0 <--- VIP
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:20 Memory:fdfc0000-fdfe0000
eth0:2 Link encap:Ethernet HWaddr 00:1A:A0:96:A4:5B
inet addr:172.20.0.210 Bcast:172.20.0.255 Mask:255.255.255.0 <--- another SCAN IP
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:20 Memory:fdfc0000-fdfe0000
eth0:3 Link encap:Ethernet HWaddr 00:1A:A0:96:A4:5B
inet addr:172.20.0.213 Bcast:172.20.0.255 Mask:255.255.255.0 <--- another SCAN IP
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:20 Memory:fdfc0000-fdfe0000
$ ./lsnrctl status LISTENER_SCAN1
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 25-MAY-2012 15:12:35
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))
STATUS of the LISTENER
Alias LISTENER_SCAN1
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 25-MAY-2012 14:28:11
Uptime 0 days 0 hr. 44 min. 23 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /home/oracle/app/11.2.0/grid/network/admin/listener.ora
Listener Log File /home/oracle/app/oracle/diag/tnslsnr/racnode1/listener_scan1/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.20.0.214)(PORT=1521)))
Services Summary...
Service "racdb.development.info" has 2 instance(s).
Instance "racdb1", status READY, has 1 handler(s) for this service...
Instance "racdb2", status READY, has 1 handler(s) for this service...
Service "racdbXDB.development.info" has 2 instance(s).
Instance "racdb1", status READY, has 1 handler(s) for this service...
Instance "racdb2", status READY, has 1 handler(s) for this service...
The command completed successfully
Any ideas?How does SCAN work?
“When a client submits a request, the SCAN listener listening on a SCAN IP address and the SCAN port is contracted on a client’s behalf. Because all services on the cluster are registered with the SCAN listener, the SCAN listener replies with the address of the local listener (Using SCAN the connection is initiated using the SCANIP, but is established using the VIP) on the least-loaded node (Each scan listener keeps updated cluster load statistics) where the service is currently being offered. Finally, the client establishes connection to the service through the listener using VIP on the node where service is offered.All of these actions take place transparently to the client without any explicit configuration required in the client.”
So, to SCAN Works you must aware:
Server (cluster)
-The service must be registered on Local/Scan ListenerI believe I've done this now but see below.
Database (rac)
-You must use remote_listener parameterThe remote listener parameter I have is:
SQL> show parameter remote listener
NAME TYPE VALUE
remote_dependencies_mode string TIMESTAMP
remote_listener string rac-scan:1521
remote_login_passwordfile string EXCLUSIVE
remote_os_authent boolean FALSE
remote_os_roles boolean FALSE
result_cache_remote_expiration integer 0
Cient
-Must resolve all SCAN Names and VIP Names (check with nslookup)I'd made a mistake there. My VIP names were not available from DNS.
-Must access port of Listener
Try it:
http://levipereira.wordpress.com/2011/05/03/configuring-client-to-use-scan-11-2-0/
Thanks, that document was useful however I don't think I've got it completely right as yet as I have no listener_scan2.
$ olsnodes -i -s -n
racnode1 1 racnode1-vip Active
racnode2 2 racnode2-vip Active
srvctl config vip -n racnode1
VIP exists.:racnode1
VIP exists.: /racnode1-vip/172.20.0.212/255.255.255.0/eth0
srvctl config vip -n racnode2
VIP exists.:racnode2
VIP exists.: /racnode2-vip/172.20.0.211/255.255.255.0/eth0
srvctl config scan
SCAN name: rac-scan.xxx.local, Network: 1/172.20.0.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /172.20.0.214/172.20.0.214
SCAN VIP name: scan2, IP: /rac-scan.xxx.local/172.20.0.210
SCAN VIP name: scan3, IP: /172.20.0.213/172.20.0.213
SQL> select INST_ID, NAME, VALUE
2 from gv$parameter
3 where name like '%_listener%';
INST_ID
NAME
VALUE
1
local_listener
(address=(protocol=tcp)(port=1521)(host=racnode1-vip.xxx.local))
1
remote_listener
rac-scan:1521
INST_ID
NAME
VALUE
2
local_listener
(address=(protocol=tcp)(port=1521)(host=racnode1-vip.xxx.local))
2
remote_listener
INST_ID
NAME
VALUE
rac-scan:1521
racnode1
$ lsnrctl service listener_scan1
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 28-MAY-2012 13:36:10
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))
Services Summary...
Service "racdb.development.info" has 2 instance(s).
Instance "racdb1", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
REMOTE SERVER
(address=(protocol=tcp)(port=1521)(host=racnode1-vip.xxx.local))
Instance "racdb2", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
REMOTE SERVER
(address=(protocol=tcp)(port=1521)(host=racnode2-vip.xxx.local))
Service "racdbXDB.development.info" has 2 instance(s).
Instance "racdb1", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: racnode1.xxx.local, pid: 3651>
(ADDRESS=(PROTOCOL=tcp)(HOST=racnode1.xxx.local)(PORT=62553))
Instance "racdb2", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: racnode2.xxx.local, pid: 6501>
(ADDRESS=(PROTOCOL=tcp)(HOST=racnode2.xxx.local)(PORT=10619))
The command completed successfully
$ lsnrctl service
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 28-MAY-2012 13:38:02
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM1", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "racdb.development.info" has 1 instance(s).
Instance "racdb1", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "racdbXDB.development.info" has 1 instance(s).
Instance "racdb1", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: racnode1.xxx.local, pid: 3651>
(ADDRESS=(PROTOCOL=tcp)(HOST=racnode1.xxx.local)(PORT=62553))
The command completed successfully
racnode2
lsnrctl service listener_scan2
none of listener_scan1, 2 or 3 say anything other than TNS-01101: Could not find service name listener_scanN
lsnrctl service
$ lsnrctl service
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 28-MAY-2012 13:19:50
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM2", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "racdb.development.info" has 1 instance(s).
Instance "racdb2", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:14 refused:0 state:ready
LOCAL SERVER
Service "racdbXDB.development.info" has 1 instance(s).
Instance "racdb2", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: racnode2.xxx.local, pid: 6501>
(ADDRESS=(PROTOCOL=tcp)(HOST=racnode2.xxx.local)(PORT=10619))
The command completed successfully
UPDATE:
$ srvctl config scan_listener
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521
There is a period of time when I shutdown one node where I cannot connect and get "ORA-12514: TNS:listener does not currently know of service requested in connect descriptor"
Edited by: MartinJEvans on May 28, 2012 2:02 PM -
Connecting to Oracle XE via regular 10g client - ORA-12514
I have had the 10g client installled on my computer for a while, for developing against our company Oracle databases. I have now installed the XE database locally on my computer so I can do some local development - according to the information I've been able to find the two should live side-by-side without problem.
I can still connect to our company databases just fine, but I can't get a connection to the local XE database at all.
I've added this line to tnsnames.ora:
XE = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))(CONNECT_DATA = (SERVICE_NAME = XE)))
The error I'm getting connecting is:
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
Thanks for any help!Hi,
I did mean duplicates even between different tnsnames.ora files.
As I understand, if you XE works, you should not need do anything for that tnsnames.ora.
Just find how entry should be for client.
BTW, what tool you will use for XE? Do you need client?
E.g. if you use SQL Developer, you do not need client or set anything to tnsnames.ora
Regards,
Jari
Edited by: jarola on Jan 18, 2011 2:30 PM
BTW, it might good to search Instant Client forums if you find help there.
If you do not find answer, then it might good idea post question there.
At least for me this is more client question than XE.
Instant Client
But as I understand it should not be any problem use 10g client for XE.
I just have never done that =) -
Sony HT-CT100 cant connect to hd tv via hdmi?????
hi i just purchased a sony HTCT100 sound bar system.and i have a sony 32 inch tv.i tried to connect the sonund bar to my tv via hdmi.it didnt work.system works optical cable.but i wanna use the hdmi cable.do you think something wrong with the tv out on the sound bar???
Have you already setup the HDMI input at the TV in the HDTV menu?
It isn't a matter of using a proper channel.
You don't hold the P key.
Hold the Windows key down and tap the P key to see the available projection options.
****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
2015 Microsoft MVP - Windows Experience Consumer -
C3 - Cant connect to any apps via vodafone..help p...
hiya
I can connect to all my apps via my home or other wifi connection, however i cannot connect to them away from home via my vodafone paygo service. The only thing i can connect to via this is the built in opera browser. Any suggestions please?hiya
I can connect to all my apps via my home or other wifi connection, however i cannot connect to them away from home via my vodafone paygo service. The only thing i can connect to via this is the built in opera browser. Any suggestions please? -
Running Oracle Reports via a client using system.exec call from war file
Hi all,
I am trying to deploy a war file application to a J2EE 10.1.3 application server. The deployment successfully completes. However testing the application fails.
When testing, the application reveals that calling a Oracle Reports 6i client (using a cmd line exec) from the war file returns application errors. The errors we get from executing the call below (using debug statements), creates this error:
OperatingSystemCmd: cmd = D:\Oracle\Dev6i\BIN\rwcli60 MODULE="CLTMLST" USERID="<userid>/<pwd>@<db>" DESTYPE="FILE" DESFORMAT="PDF" DESNAME="<path>\<pdf filename>.PDF" PARAMFORM="NO" BACKGROUND="NO" SERVER="r6i.world" TOLERANCE=0 ADVCODE="<param>"
OperatingSystemCmd: Command returned 3
WrsRunReport: Done executing report
WrsRunReport: Error running report Return code 3
Error on Screen is REP-0178 : Cannot connect to reports service.
However running the same command from a operating system command prompt in windows reveals that the command runs successfully.
Is there any particular OC4J J2EE settings that are required to get this statement to run properly?
Any help is most appreciative.
Cheers
RodneyHi All,
From much research and experimenting to get this to work I looked at the java.lang.Runtime class and noticed that seperate processes can be started using this very important Java class.
The first thing that I experimented with was in regards to seeing the environment OC4J runs against. Using the java.lang.Runtime class I executed a standard "cmd /c set" command in my Windows environment, and noticed that Oracle Application Server uses its own environment and not a standard windows login environment for its OC4J containers. Apache Tomcat on the other hand uses the standard user login environment.
So to get the application to be able to work properly we needed to override the particular environment the process needed to be able to get it to work. There is a exec command which allows you to override completely the environment for a process you would like to run. This method call does not in any way shape or form change the standard OC4J environment. This was done by executing the same "set" but with the overriden environment. Note that no environment variables from the OC4J container are carried into this new environment.
Cheers
Rodney -
ASP Crystal Report 2008 (12) Oracle 9 and Visual Basic!
Hi All,
I'm mainting an old application and I need to simulate the same client environment in my machine.
I have a VB application (with COM+ server components) that's creates a report object with parameters. But the only thing that this application does it's call an ASP page that contains all the logic to call a .rpt file, connect to Oracle 9i and then show the crystal report inside a MS webbrowser component (activeX) in the VB form.
I already setup the IIS, and the site there, I put all the .rpt files in the site and if you try to access without calling from VB you can run the asp pages, but the reports still doesn't appears.
These ASP pages should connect to Oracle and then show the rpt file, but I'm facing the following error:
The url that's the application creates is for example this: http://localhost/application1/createreport.asp?sSessionId=2&ReportName=TransactionsProcessed.rpt¶meter1¶meter2... etc etc...
Script Error Number: -21471922153
File could not be opened because the library "P2sora7.dll" cannot be found.
User Error Text: An error has ocurred in CreateReport.asp while logging onto the Oracle database server. Please try again.
I already check the database connection and it is working fine using ODBC, and the application works fine with the database.
The file p2sora.dll is in C:\WINDOWS\SYSTEM32, I already copied from another machine, and I have installed Crystal Report 2008 (12) in my server machine with Windows 2003 server, that's the application and web server where report should be run. I know that the old application was executed with Crystal 7, but I cannot found this version to buy.
Edited by: Don Williams on Mar 21, 2010 9:05 AMThis is the code of the createPage.asp that it's called from VB:
<%
On Error Resume Next
Dim sDLLName
Dim sDatabaseType
Dim sServerName
Dim sUserId
Dim sPassword
Dim arrayInteger
Dim sReportDbName
Dim oTransStore
Dim oReportObject
Dim oCRSections
Dim oCRSection
Dim oCRSubReportObject
Dim oCRReportObjects
Dim oCRReportObject
Dim oCRSubReport
Dim oCRPageEngine
Dim sSessionId, sReportPath, sReportName, sTablename
' Errorhandling Parameters
Dim lUserErrorNumber, sUserErrorText
' -- Get parameters --
sSessionId = Request.QueryString("SessionId")
sReportName = Request.QueryString("ReportName")
sStartDay = Request.QueryString("StartDay")
sStartMonth = Request.QueryString("StartMonth")
sStartYear = Request.QueryString("StartYear")
sEndDay = Request.QueryString("EndDay")
sEndMonth = Request.QueryString("EndMonth")
sEndYear = Request.QueryString("EndYear")
sAccName = Request.QueryString("AccId")
sUserName = Request.QueryString("UserName")
' -- Initialisation --
Session("ImageFolder") = ".\images"
sDatabaseType = Request.QueryString("DbType")
sServerName = Request.QueryString("ServerName")
sUserId = Request.QueryString("DbUserId")
sPassword = Request.QueryString("DbPassword")
sReportPath = Request.QueryString("ReportsFolder")
' -- Select DLL for DB Type
- Hide quoted text -
sDLLName = "P2sora7.dll"
Response.Write "DATABASE SELECCIONADA: " & sDatabaseType
Select Case sDatabaseType
Case "Oracle":
sDLLName = "P2sora7.dll"
sReportDbName = ""
Case "SQLServer":
sDLLName = "P2ssql.dll"
sReportDbName = Request.QueryString("ReportsDbName")
Case "Informix":
sDLLName = "P2sifmx.dll"
End Select
' -- Set the ErrorNumber to 400 and sErrorText.
sUserErrorText = "An error has occurred in CreateReport.asp while loading the report details. CreateObject(CrystalRuntime.Application) . Please try again."
lUserErrorNumber = 400 -
Connection to Oracle 8.0.6
I have recently upgraded from 8.0.5 to 8.0.6 on an AIX 4.3 server. Before the upgrade it used to be possible to connect to Oracle from an NT client either via the Hosts file, or via the definitions in TNSNAMES.ORA. However, now it is now only possible to connect using a Server name specified in TNSNAMES.ORA; trying to use the actual Host name generates the following error:
ORA-12514: Message 12514 not found; product=RDBMS80; facility=ORA
Any ideas?
nullAnother info.
When i try to create a physical schema under that data server i receive this error:
java.lang.UnsatisfiedLinkError: no ocijdbc10 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:3013)
at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:228)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:361)
at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:142)
at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:79)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:595)
at com.sunopsis.sql.SnpsConnection.v(SnpsConnection.java)
at com.sunopsis.sql.SnpsConnection.a(SnpsConnection.java)
at com.sunopsis.sql.SnpsConnection.testConnection(SnpsConnection.java)
at com.sunopsis.sql.SnpsConnection.testConnection(SnpsConnection.java)
at com.sunopsis.graphical.frame.a.jz.dQ(jz.java)
at com.sunopsis.graphical.frame.a.jz.bE(jz.java)
at com.sunopsis.graphical.frame.bo.bA(bo.java)
at com.sunopsis.graphical.frame.a.jz.en(jz.java)
at com.sunopsis.graphical.frame.a.jz.<init>(jz.java)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.sunopsis.graphical.frame.bb.b(bb.java)
at com.sunopsis.graphical.tools.utils.swingworker.v.call(v.java)
at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
at com.sunopsis.graphical.tools.utils.swingworker.l.run(l.java)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
at edu.emory.mathcs.backport.java.util.concurrent.Thread
Maybe you are looking for
-
Trying access my Apple TV movies on someone's else's Apple TV, logged in and get everything I have purchased but when trying to play it says error loading
-
ITunes refuses to read music on second internal HDD
Hello! I realize this topic has been asked to death, we need some form of sticky topic! After a bit of searching, I haven't turned up anything I haven't tried. Here goes: -I just got my old 400mhz AGP G4 up and running - 768 MB RAM, OS 10.4.8, a new
-
IPhoto Events NOT Appearing in iTunes for iPhone Syncing
Hi Guys, I'm a recent convert from PC to mac. I loaded all my pictures into iPhoto and it recognized them all correctly as Events. In iTunes though, I don't see a listing of my events. It says "Last 3 Months" and "Last Import" How can I get it to see
-
I want to Firefox to do automatic backup of the bookmarks file. It saves the file in the Firefox Profiles folder. To have it save the file in My Documents, I created the following new preference:;C:\Users\Gerry\Documents\BOOKMARKS. However, the bookm
-
Profile Parameter to execute Abap Program at user logon.
Hi Experts I've written a small printer selection program to change the users profile parameter. Is there another profile parameter that can be given to execute this program automatically when the user logs on.....The reason why I'm looking for a pro