Connect to Oracle database from Perl on Solaris x86
Hi,
How can I connect to Oracle database using Perl scripts on Solaris x86. It seems that DBD-Oracle Perl module requires Oracle client installed to work. Is there any Oracle client available for Solaris x86? Any one got a workaround? Thanks.
Angus Lee
Yes, you absolutely must have some portions of the rdbms installed before you can proceed. If your Solaris x86 machine is only a client, then you can get away with installing just ?/rdbms/mesg and ?/rdbms/lib.
I have Oracle 7.3.4, 8.0.5, 8.0.6, and 8.1.6 for Intel Solaris 2.6. I don't know if they'll run on Solaris 8 or 9 but I'm trying to upgrade at this very moment. As long as you conform to Oracle developer license, then you may download them from my machine.
I believe the reason Oracle dropped their Intel Solaris port is probably because Sun went through a period where they themselves dropped their Intel port. They've picked back up and if enough Oracle on Intel Solaris customers scream, then Oracle might pick it back up again too.
Send me an email if you're interested in the downloads.
Similar Messages
-
How to connect to Oracle database from webdynprojava application
Hi
How to connect to Oracle database from webdynprojava application. where can we provide the code to connect to database.?
Thank You.Hi,
You need to create Java Bean model. The bean is a typical java bean with default constructor, getter and setter. You can have additional methods for query etc. The attributes in the class will be your model node and attributes.
However you need to configure the connection and create JNDI using visual administrator before writing the code.
You can also consider writing Session EJB with oracle and using them in WD.
http://help.sap.com/saphelp_nwce10/helpdata/en/45/dcaa4f05535591e10000000a1553f7/frameset.htm
Srini -
How to connect to oracle database from visual basic 2010 express edition
I have installed visual basic 2010 express edition on windows xp. But visual basic 2010 express edition supports Microsoft sql server database file,Microsoft sql server compact 3.5, Microsoft access database file. I want to connect to oracle database from visual basic 2010 express edition. So what drivers are required and how to do connectivity?
Hello,
I wasn't clear on what you were using to make the connection. I had a look in Visual Studio 2010 (don't have express to test sorry).
I think you mean the Data Sources available under the menu Data-> Datasources. this seems to match the description you give when I
look at the list of datasource options.
In here you can make ODBC connections via the Microsoft .net Data Provider .
If you select ODBC as a datasource you can see listed the DSN's you created - for example I see 2 which use the Oracle ODBC driver.
This assumes you installed an Oracle Client + the oracle version of the ODBC driver (comes with the oracle client).
Once you created a server connection then you should see it in the server explorer.
You can also download the Oracle Developer Tools for Visual Studio which is an add on for VS.
** I suspect this is only for VS 2010 and I didn't see that Express was supported.
http://www.oracle.com/technetwork/developer-tools/visual-studio/overview/index-097110.html
Let me know if that helps.
John -
Connect to Oracle database from SQL Sever
Can you help on an issue of connection from SQL Server to Oracle database:
In SQL Server, I create a "linked server" to connect to Oracle database on a different machine. But it will take a unreasonable time (about 30 seconds) to call a Oracle query from SQL Server.No there are no entries required in the TNSNAMES.ORA
When you are using ODBC for connection, Oracle does not look fo rany enteries in TNSNAMES.ORA file.
Now I am able to connect to both SQL Plus and Forms 6i. But while connecting to SQL Plus its giving an error
Error accessing PRODUCT_USER_PROFILE
Warning: Product user profile information not loaded!
You may need to run PUPBLD.SQL as SYSTEM
Server not available or version too low for this feature
Connected to:
Oracle Open Client Adapter for ODBC 6.0.5.35.0
Microsoft SQL Server 08.00.0534
Also while disconnecting the Windows Program Error comes, and the application closes abruptly. -
Not connecting to Oracle Database from Oracle BIEE 10g on Windows 7 machine
Hi friends,
I succesfully installed OBIEE 10g on my Windows 7 (Ultimate) machine using the assistance from one of your threads.
Now I am not able to connect to Oracle 11g database. When I tried to configure through START->Control Panel --> Administrative Tools --> DATA SOURCES (ODBC) ---> ....I am seeing Oracle 11g in System DSN but I am unable to see OBIEE driver in system DSN. After setting manually, I am now seeing OBIEE driver in user DSN. So is all other 32 bitapplications like MS Acess, Excel, etc., are all in user dsn.
When I open OBIEE Administration tool, I can only see ONLY Analytics Web and nothing else. How do I connect to Oracle database. Please assist me.
Thanks in advance.
DinHi,
Your window os 32bit or 64bit -- Please conform?
Your Os 64 bit -- http://www.mycabi.net/?p=19 please read this link.
Your windows os 32 bit :
Go--> Run--> odbcad32 follow the below step
In ODBC Administration, on the System DSN tab add a new connection
1. step : Data Source: "Oracle BI Server" -->"Next"-->Name: "AnalyticsWeb"-->Server: "local"-->(everything else unchecked)-->"Next"-->Give the username for the BI Server-->"Administrator" -->(I think the password can main blanc),Port: "9703 -->(everything else unchecked)-->"Next"-->(everything unchecked)-->"Finish"
When I tried to configure through START->Control Panel --> Administrative Tools --> DATA SOURCES (ODBC) ---> ....I am seeing Oracle 11g in System DSN but I am unable to see OBIEE driver in system DSN
A. I don't no why your creating ODBC connection.
Note: Open your rpd with AnalyticsWeb and give me useranme and password --> go to physical layer select connection pool and give all credntails here.
http://gerardnico.com/wiki/dat/obiee/ociv -- please refer this link
Datasource : Your dbname (ORCL,)
username: your schema name
Password: your schema password.
Hope it help's
Thanks,
Satya -
Could not connect to Oracle database from excel macro. Getting connection not open.
Hi all,
I could not connect to oracle database using excel macro. After much R&D also, I cannot find right solution. Please help me where I am doing wrong.
Sub Button2_Click()
Dim Conn As New ADODB.Connection
Dim RS As New ADODB.Recordset
Dim Cmd As New ADODB.Command
Dim sqlText As String
Dim Row As Long
Dim Findex As Long
Dim Data As Worksheet
Dim X As Long
Dim UID As String
Dim PWD As String
Dim Server As String
Dim strCon As String
Application.Calculation = xlCalculationManual
UID = "myUserid" 'Enter the User ID
PWD = "myPassword" 'Enter the password
Server = "myHostname or myServername"
Set Data = Sheets("Sheet2")
Data.Select
Range("A:J").ClearContents
strCon1 = "Provider = Microsoft.ACE.OLEDB.12.0;DATA SOURCE=myHostName;Database=myDBname;uid=myUserid;pwd=myPassword;"
Conn.Open (strCon1)
Cmd.ActiveConnection = Conn
Cmd.CommandType = adCmdText
' Put your query next
sqlText = " select * from table "
Cmd.CommandText = sqlText
Set RS = Cmd.Execute
For X = 0 To 17
Data.Cells(1, X + 1) = RS.Fields(X).Name
Next
Do While Not RS.EOF 'this loops through the data and puts it in the spreadsheet
Row = Row + 1
For Findex = 0 To RS.Fields.Count - 1
Data.Cells(Row + 1, Findex + 1) = RS.Fields(Findex).Value
Next Findex
RS.MoveNext
Loop
Application.Calculation = xlCalculationAutomatic
Application.Calculate
End Sub
sammyI have set oci.dll in to the path specified. Prior to this I musy say that, I have 64 bit excel 2010 & installed respective drivers from the link provided http://www.oracle.com/technetwork/database/windows/downloads/index-090165.html
But
still I am facing as:-" Provider cannot be found. It may not be properly installed."
sammy -
Cannot connect to Oracle database from SQL Server
Hi
We have set up a SQL Server linked server and tried to use this SQL Server linked server to connect to Oracle database. We are using SQL Server 2008 and Oracle client 11g 11.02.00.01. However, we got this error message:
Msg 7347, Level 16, State 1, Line 1
OLE DB provider 'OraOLEDB.Oracle' for linked server 'OurLinkedServer' returned data that does not match expected data length for column '[OraOLEDB.Oracle].Ourfieldname'. The (maximum) expected data length is 6, while the returned data length is 2.
We are able to connect some of the tables ok but some of the tables are not connected and got the above error message.
Any suggestions are greatly appreciated.
Thanks a lot
TomHi
Here is more information. We just found out that the Oracle database team changed the character set to something else and then they changed it back to UTF8.
Currently, it is using UTF8 character set on the Oracle side. Will this causing us this error message on our sql server linked server?
The error message said "The (maximum) expected data length is 6, while the returned data length is 2."
This refers to a field/column with char(1)
Any suggestions are greatly appreciated
Thank you
Tom -
Connection to oracle database from sap R/3
Hello SAP Masters,
I do have two querries.
1) I want to download the data into oracle.
so is it possible in sap?
2)please explain me how in details?
3) I tried with DBCON .
4) But when I wrote program stating the name of the connection it is giving dump.
5) So can i get two things.
6) Some sample DBCON information.
7) And after this connection how to insert the data into oracle.ie native sql code
and abap code.
8) please can any one explain me with example in details or sample code?
Regards,
Prasad Dhaygude.Hello Ajai,
Thanks raised to infinity.
Many thanks for sharing your valuable time for my querry.
Still I do have one querry as follows:
1) Actually I want to connect with the oracle database.
so I made entries like this:
database name:deepak_data
dbs: ora
username: prasad
connection information:oracle_server=ess-serverORACLE_DBNAME=INVOICE_02
now I want to ask you.
How to write native sql code in abap.
*& Report ZP *
REPORT ZP.
TABLES: Zp,dbcon.
DATA: BEGIN OF IT_ITAB OCCURS 0,
INV_NO LIKE Zp-INV_NO,
AUBEL LIKE Zp-AUBEL,
MATNR LIKE Zp-MATNR,
FKIMG LIKE Zp-FKIMG,
END OF IT_ITAB.
data:BEGIN OF IT_ITAB1 OCCURS 0,
INV_NO like Zp-INV_NO,
end of IT_ITAB1.
DATA: exc_ref TYPE REF TO cx_sy_native_sql_error,
error_text TYPE string.
DATA: WA LIKE IT_ITAB.
START-OF-SELECTION.
SELECT * FROM Zp INTO CORRESPONDING FIELDS OF TABLE IT_ITAB.
EXEC SQL.
CONNECT TO : invoice_02 USER df_truck USING df_truck
endexec.
EXEC SQL .
LOOP AT IT_ITAB.
INSERT INTO ZINVOICE_02 VALUES IT_ITAB.
ENDLOOP.
ENDEXEC.
*ENDFORM.
I wrote the code mentioned above.
But it states that field specification missing at the time of execution.
2) Please check the code and connect to statement also.
Can you please explain me with the help of sample code that how to write
connect to statement.
3) First of all I ll have to connect to database or oracle server on which oracle
database exists.
4) And then I ll have to insert the data from zinvoice02 into oracle table invoice_02.
5)Many Many thanks for your cooperation.
6) I wish you happy Navaratri and coming Dassera.
Regards,
Prasad. -
Problem in connecting Non Oracle Database from Oracle
Hi:
I want to access "MS ACCESS" from Oracle 10g (10.2.0.1) using Windows XP.
I tried my best, applied all proper instructions I found from books and from Internet, but getting an error.
Here is what I did:
My Oracle database is called "ORCL" and "MS ACCESS" is called "access_1".
There is only one table "Employees" in "access_1".
1. Accessed ODBC from Start | Control Panel | Administrative Tools.
2. Clicked on Users DSN | "access_1" | Add.
3. Clicked on "Drive do Microsoft Access (*.MDB)" .
4. Hit Finish.
5. Entered at DATA SOURCE NAME "ODBC1" and at DESCRIPTION "Connect Oracle to MS Access". Also I clicked on SELECT and chose the "Access_1.mdb" which is located at "C:\Documents and Settings\Muhammad\My Documents" folder. Clicked OK. and clicked on OK again.
6. Now I went to Oracle side and configured listener as follows: (Only portion is shown here)
# listener.ora Network Configuration File: C:\oracle\product\orcl\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\orcl)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = hsodbc)
(ORACLE_HOME = C:\oracle\product\orcl)
(PROGRAM = hsodbc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = RIYAZDESKTOP)(PORT = 1521))
7. Configuring the hs file located at C:\oracle\Product\Orcl\hs|admin as follows:
# HS init parameters
# HS_FDS_CONNECT_INFO = <odbc data_source_name>
# HS_FDS_TRACE_LEVEL = <trace_level>
HS_FDS_CONNECT_INFO = odbc1
HS_FDS_TRACE_LEVEL = OFF
# Environment variables required for the non-Oracle system
#set <envvar>=<value>
8. The TNSNAMES.ORA File is located at C:\:\oracle\product\orcl\network\admin\ and has the following text (only the related text is shown here):
# tnsnames.ora Network Configuration File: C:\oracle\product\orcl\network\admin\tnsnames.ora
# Generated by Oracle configuration tools
access_db.world =
(DESCRIPTION =
(Address = (PROTOCOL = TCP) (HOST = RIYAZDESKTOP) (PORT = 1521))
(CONNECT_DATA = (SID = hsodbc))
(HS=OK)
9. The database link is created as follows:
SQL> create database link access_db USING 'access_db.world';
Database link created.
SQL>
10. Now the test and selection:
SQL> select * from employees@access_db;
select * from employees@access_db
ERROR at line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
Unable to retrieve text of NETWORK/NCR message 65535
ORA-02063: preceding 2 lines from ACCESS_DB
OH! I HAVE TO RELOAD THE LISTENER AND I DID IT HERE.
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\oracle\product\orcl\BIN>lsnrctl reload
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 17-NOV-2006 17:51:26
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
The command completed successfully
C:\oracle\product\orcl\BIN>
SQL> select table_name from all_tables@access_db;
select table_name from all_tables@access_db
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC][Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (SQL State: IM002; SQL Code: 0)
ORA-02063: preceding 2 lines from ACCESS_DB
I HAVE DONE IT EXACTLY WHAT YOU PROVIDED ME BUT GOT THE SAME RESULT.
ANY SOLUTION!
THANKS.see Connect 9i to Microsoft Access Database
-
Connecting to Oracle database from ASP = please help!
i have tried every kind of combination of connection string to connect to a 9i database from ASP but it does not work!
I am using XP Professional and have 9i Developer and ODP.NET installed but I want to use OLE DB (Oracle or Microsoft) to access the database. I have a feeling the web page is not seeing the driver. here is my code:
<% Option Explicit %>
<HTML>
<HEAD><TITLE>Oracle Data Access</TITLE></HEAD>
<BODY>
<%
Dim objConnection
Dim objRecordset
Set objConnection = Server.CreateObject("ADODB.Connection")
With objConnection
.ConnectionString = "Provider=MSDAORA;Data Source=obiwan;" & _
"User ID=user; Password=pass;"
.Open
Response.Write "ADO Provider=" & .Provider & "<BR>"
Set objRecordset = .Execute("SELECT sysdate, user FROM dual")
End With
</body>
</html>Try using this connect string:
Provider=MSDAORA.1;Password=tiger;User ID=scott;Data Source=ORA92;Persist Security Info=True
substitute your username/password and Data Source here.
This works on Windows2000 with Microsoft OLEDB provider
for Oracle. -
Connect to Oracle Database from Windows Mobile
Is there any Oracle Client product that will allow Windows mobile powered devices to connect to an oracle database? I'm using .net and the compact framework 2.0.
Anyone have a clue?
Regards,
Andras EliassenI think I would call it a client tool. Maybe I wasn't so precise in my previous post, sorry. What I need is basically this:
I have a 9i database that is running on a unix box on my network. I have created a Visual Basic .Net application that is using ODT to select, insert, update and delete records in this database - and also executes some stored procedures.
Now I'm trying to move to the next step, and I want my windows mobile powered device/phone to do the same thing - Select, insert, update, delete and execute stored proc/pckgs on the database.
The only way I have found to do this, is by implementing some webservice or something in between my windows mobile device, and the database, because I cannot find dataaccess drivers/components (ODT or the like) that will work on a windows mobile powered device.
Any suggestions?
Regards,
Andras Eliassen -
Hi - I'm new to this group and wonders whether you guys can help me.
I'm trying to connect to my Oracle9i database via a Java servlet but
got the following error message in the web browser:
Internal error: exception thrown from the servlet service function
(uri=/servlet/HelloWWW6): java.lang.NullPointerException, Stack:
java.lang.NullPointerException
at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java:1743)
at oracle.jdbc.oci8.OCIEnv.getEnvHandle(OCIEnv.java:69)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:452)
at oracle.jdbc.driver.OracleConnection.(OracleConnection.java:287)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance
(OracleDriver.java:442)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:321)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:172)
at HelloWWW6.doGet(HelloWWW6.java:40)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.iplanet.server.http.servlet.NSServletRunner.invokeServletService
(NSServletRunner.java:897)
at com.iplanet.server.http.servlet.NSServletRunner.Service
(NSServletRunner.java:464)
My class path is:
Java VM
classpath: /u01/iplanet/servers/plugins/servlets/examples/legacy/beans
.10/SDKBeans10.jar:/usr/local/javamail-1.2/mail.jar:/usr/local/jaf-
1.0.1/activation.jar:/u02/app/oracle/product/9i/lib:/u02/app/oracle/pr
oduct/9i/jdbc/lib:/u02/app/oracle/product/9i/jdbc/lib/classes12.zip:/u
02/app/oracle/product/9i/jdbc/lib/nls_charset12.zip:/u01/iplanet/serve
rs/bin/https/jar/NSServletLayer.jar:/u01/iplanet/servers/bin/https/jar
/NSJavaUtil.jar:/u01/iplanet/servers/bin/https/jar/NSJavaMiscUtil.jar:
/u01/iplanet/servers/bin/https/jar/servlet.jar:/u01/iplanet/servers/bi
n/https/jar/servlet-2.3-filters-
api.jar:/u01/iplanet/servers/bin/https/jar/jsp092.jar:/u01/iplanet/ser
vers/bin/https/jar/jaxp.jar:/u01/iplanet/servers/bin/https/jar/crimson
.jar:/u01/iplanet/servers/bin/https/jar/xalan.jar:/u01/iplanet/servers
/bin/https/jar/jspengine.jar:
My LD_LIBRARY_PATH is:
/u02/app/oracle/product/9i/lib:/u02/app/oracle/product/9i/jdbc/lib:/u0
2/app/oracle/product/9i/jdbc/lib/classes12.zip:/u02/app/oracle/product
/9i/jdbc/lib/nls_charset12.zip
Can anyone help? This is currently driving me nuts. I was able to
connect when I changed it to an application.
I am using the Iplanet Webserver 6.0 on a Linux 7.2 platform. Like I
said, sqlplus works fine, standard java application works fine but
when I change it to a servlet (which means it now goes through the
webserver, I get this error message)
Does anyone know what the source code is trying to do at
OCIDBAccess.java:1743 ?
Thanks guys!Tony, could you please explain me better the procedure that you wrote?
What are the boxes? My situation is similar:
| ServerSocket (1) |
| (192.168.1.100, 5555) |
|
|
|
|
| Proxy |
| Someone wants to connect to the ServerSocket (1) |
That is not true. You CAN do it but you need a box
outside the firewall with proper IP address to help
you. I am not sure if Sergio still wants the answer
today after more than a year from the original post (I
did not see the post until today when I try to search
for something else). Anyway, if such a box is
available (I call it 2nd box), you could first
establish a socket between the two boxes by HTTP
tunneling (I assume it is a http proxy). You have to
initiate the socket from the 1st box. Then start
another server socket on the 2nd box, forwarding the
traffic it gets from outside back to the 1st box using
the established channel. That is it.
Tony -
Error establishing ODBC connection to Oracle database from Access 2007
I am trying to access via linked tables from Access 2007 my ODBC connections.
I am able to setup and test successfully in the ODBC Data Source Administrator my Data source, and Driver(Oracle in OraHome92), and I used this successfully when I had Access 2003 on this PC.
system details: Oracle 9i, MS Access 2007 on Windows XP
error - call failed:
detailed error from sqlnet.log:
Fatal NI connect error 12560, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleORCL)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=ORCL)(CID=(PROGRAM=C:\Program Files\Microsoft Office\Office12\MSACCESS.EXE)(HOST=USRN4WNCNH6DDQG)(USER=fznp29))))
VERSION INFORMATION:
TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 9.2.0.1.0 - Production
Time: 05-DEC-2008 11:38:05
Tracing not turned on.
Tns error struct:
nr err code: 0
ns main err code: 12560
TNS-12560: TNS:protocol adapter error
ns secondary err code: 0
nt main err code: 530
TNS-00530: Protocol adapter error
nt secondary err code: 126
nt OS err code: 0
Any ideas?Hi,
Please can you specify how you create your DSN for Oracle connection in ODBC Data Source Administrator?
What did you specify for the TNS Service Name?
What is the content of your TNSNAMES.ORA file?
Thx
Mireille -
Connect to Oracle Database from Windows 64 bit to Offic2007 32bit
Good day to all,
I know that there are many threads with similar subject, but I could't found how can I put the connection string to my code
I have installed insance clinet 32bit for oracle, all about TNS, configurations, I have created UDL file running for 32 bit application through command
C:\Windows\syswow64\rundll32.exe "C:\Program Files (x86)\Common Files\System\Ole DB\oledb32.dll",OpenDSLFile C:\test.udl
and test connection is ok.
But I put in my code (VBA Access 2007 32 bit) the connection string:"Provider=MSDASQL.1;Password=psw;Persist Security Info=True;User ID=user;Data Source=DSNName-32bit"
and I receive the error: "[Microsoft][ODBC driver for Oracle][Oracle]ORA-06413: Connection not open."
I think that I am close to solution but I need a help
Pls advise
MichaelHello,
I am getting the same error. tried almost everything. Did you find the solution to your problem? -
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?
Maybe you are looking for
-
I have 2 iphones, one for personal and one for business. I need my phones not to sync otherwise they will both ring all the time. How can I log out of my icloud and unsync my phones?
-
Problems with Ken Burns effect
Having a very frustrating time trying to get a decent slideshow. Like the KB effect but when I play it back the images jerk and jump. Smoothness totally gone. Strange thing is sometimes it is worse than others. Have tried closing all other unnecessar
-
Everytime I start iTunes, I get the spinning candy wheel of death after a couple of minutes - even when nothing is synching and it's not even playing music. I can't delete it and reinstall it. What can I do?
-
Header Text exceeding 40 chars in ALV Grid display
Hi I have an ALV (GRID) report, where one of the column headings has text length exceeding 40 chars. In my code, I have declared - wa_fieldcat-seltext_l = text-017, where the seltext_l length is restricted to 40chars. Is there any way by which i c
-
Never had this problem until V19 [and I don't want V20 yet--no Norton toolbar] I open about 10 tab and it chokes up. [used to have 20 tabs open] Cannot play any game or puzzle because it locks up.