Failed Connection to database from Putty . . .
Dears,,
I have Database UNIX server
and I can connect to the database through cmd command prompt ( sqlplus )
But when i connect to the UNIX server through Putty , it logged in to the UNIX operating system.
After logging to UNIX OS , i cannot connect to database through sqlplus ( failed )
and gave me ORA-12641: Authentication service failed to initialize
See the following . . .
login as: oracle
[email protected]'s password:
Last unsuccessful login: Tue Dec 28 14:56:02 CST 2010 on ssh from 172.16.50.54
Last login: Sun Mar 6 16:23:27 CST 2011 on /dev/pts/0 from x.x.x.x
db:/home/oracle>sqlplus user/pass@list
SQL*Plus: Release 10.2.0.4.0 - Production on Sun Mar 6 16:28:15 2011
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
ERROR:
ORA-12641: Authentication service failed to initialize
Enter user-name:
Please , help
Thanks & Regards,,
hello,
In the $ORACLE_HOME/network/admin/sqlnet.ora file SQLNET.AUTHENTICATION_SERVICES is set to ALL and Secure Network Services has not been used.
Issuing the connection from another computer rather than host will not produce the error because in that case secure network services will be used.
To disable SQL*Net authentication services while still allowing normal SQL*Net connections you can set in $ORACLE_HOME/network/admin/sqlnet.ora the following line,
SQLNET.AUTHENTICATION_SERVICES =(NONE)
Similar Messages
-
Not able to connect RAC database from client
Hi there
Recently I have configured RAC in test environment. version 11.2.0.1. OS Redhat 5.9. Everything seems to be fine except not able to connect rac database from client. Error is as under :
C:\Documents and Settings\pbl>sqlplus test1/test1@myrac
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Nov 17 14:29:06 2014
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12545: Connect failed because target host or object does not exist
Enter user-name:
myrac =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac-scan)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = racdb.testdb.com.bd)
Please give me your valuable suggestion to overcome the issue.
Regards
Jeweluser13134974 wrote:
ORA-12545: Connect failed because target host or object does not exist
This error means that the hostname or IP address used in the TNS connection string, failed to resolve or connect.
Your client is making two connections. The first connection is to the SCAN listener. It matches a db instance for your connection request based on service requested, available registered service handlers, load balancing, and so on. It then send a redirect to your client informing it of the handler for that service.
Your client then does a second connection to this service (a local RAC listener that will provide you with a connection to the local RAC instance). This is what seems to be failing in your case.
The SCAN listener's redirect uses the hostname of the server that the local listener is running on. Your client needs to resolve that hostname (of a RAC node) to an IP address. This likely fails.
You can add the RAC node hostnames to your client platforms hosts file. The appropriate action however would be to ensure that DNS is used for name resolution instead. -
When connect the Database from Toad , Sqlplus giving the error
when connect the Database from Toad , Sqlplus giving the error
recent changes 12.1.1 installatiojn
Oracle SQL plus encountered a problem and needs to close we are sorry for convenienvce
Oracle Forms Designner has encountered a probloem and needs to close we are sorry for the convenience
Thanks & Regards,
sreewhen connect the Database from Toad , Sqlplus giving the error recent changes 12.1.1 installatiojnHave you tried using the same user via simple sqlplus on the database server or apps tier server itself? Please try the same database user/login on the database server using the sqlplus available on the server itself. See what message do you get. If the the login happens, then try with the tns entry e.g. sqlplus username/password@prod and see if that works on the db server. If both of these conditions work the check where is Toad picking up the tns entry from on the client pc/laptop. If first test fails, then check if the account is locked.
Hope this helps. -
Problem in connecting to database from webdynpro for java
Hi
I have a problem in connecting to database from webdynpro application
I am using oracle 10 express edition as database and was able to connect to database from a java application.But was unable to connect from a webdynpro for java.
<b>I guess webdynpro for java uses open sql instead of vendor sql(I looked in the visual admin ,DB is using open sql) so unable to connect to database.Am i right.?</b>
Do i need to make any settings in the visual admin to make it work?
How to solve this problem.Please give me pointers
Thanks
BalaHi,
For connecting to Oracle, either you can use the normal JDBC connectivty code directly which is given below :
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@Oracle_server_ip:Oracle port:SID of the Database","user_name","password");
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("your query");
In case you want to fetch data through ejbs, these are the steps to be followed :
1) Open the J2EE perspective
2) Create an EJB Module project
3) Right click on ejbModule, create a new EJB (select your EJB type)
4) While creating the ejb itself, you can add business methods by clicking Next in the UI. Another option is after creating the ejb, write the method in the bean, then select the method from ejb-jar.xml -> <bean name> ->method. Right click and select propogate to local & remote.
5) Double click on ejb-j2ee-engine.xml. select your bean and specify a Jndi name for eg: MyJndi.
6) Right click on the EJB project and add classes12.zip file (provided by Oracle) to its build path. (under libraries tab). Also check the same file under Order & Export.
7) Create an Enterprise Application project.
8) Right click on the EJB module project and select add to EAR project, then select the created EAR project.
9) Right click on the EJB project, select Build EJB Archive
10) Right click on the EAR project, select Build Application Archive
11) Open the WebDynpro perspective, open a new project, right click on the project ->properties. Do the following configurations :-
Java Build path - select the EJB project from projects , check the selected project under Order & Export
Project references select the EAR project
WebDynpro references select sharing references tab, click add & make an entry as : <vendor>/<EAR project name without .ear extension>
You can find the vendor name under application-j2ee-engine.xml file of the EAR project. By default it is sap.com. So if my EAR projects name is ABC, my entry would look like sap.com/ABC
12) Now the configurations are over and the EJB can be invoked by writing the client code inside the webdynpro component. Like:
InitialContext context = new InitialContext();
Object obj = context.lookup("MyJndi");
MyEJBHome home = MyEJBHome)PortableRemoteObject.narrow(obj,MyEJBHome.class);
MyEJB mybean = home.create();
int a = 0;
a= mybean.add(10,15);
wdContext.currentContextElement().setSum(a);
where MyEJB is my EJB name and MyJndi is my JNDI name
To connect to Oracle , you can write the usual Java code (given below) as a business methos of the ejb (similar to add() method in the example). And access it like mybean.<businessMethodName>().
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@Oracle_server_ip:Oracle port:SID of the Database","user_name","password");
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("your query");
Extracted from Re: Webdynpro and Oracle
http://help.sap.com/saphelp_webas630/helpdata/en/b0/6e62f30cbe9e44977c78dbdc7a6b27/frameset.htm
May be of use to understand the VA Conf /people/varadharajan.krishnasamy/blog/2007/02/27/configuring-jdbc-connector-service-to-perform-database-lookups
Regards
Ayyapparaj -
Not able to connect to database from Form builer
Hi ,
I installed oracle 10 g in my machine and is accessable from SQLPLUS & TOAD.
In the same drive i installed Form builder, i am getting the below error when i tried to connect DB from form builder.
ORA- 12154 : TNS : could not resolve service name.
Kindly do the needfull.not able to connect to database from Form builder
-
How to Connect Oracle database from excel
I have installed oracle 11g on Windows 8 64 bit OS on my laptop. I have Microsoft excel 2013. I can connect to database from SQL and from TOAD. Now i want - from excel to connect to database.
Please guide me the steps.
ThanksBelow link may be helpful to you :
http://khalidali-oracledba.blogspot.in/2013/09/connection-between-ms-excel-to-oracle.html
And if you are getting 32 bit vs 64 bit ODBC driver issue then :
https://social.technet.microsoft.com/Forums/office/en-US/2234554e-e93c-438b-990a-6739df19da44/odbc-connection-problem-in-excel-2013-64-bit-windows-8-os-and-x64-processor-oracle-8i?forum=excel
And still you are not able then post the question in :
ODBC
Regards
Girish Sharma -
How to connect oracle database from tuxedo
Hi,
How to connect oracle database from tuxedo.
If any one can help me.
Regards,it depends on configuration your going to choose, there are two ways--
- Using X/Open standards, for this
you have to make an entry of Resource manager in $TUXDIR/udataobj/RM file.
Then in UBBConfig file in GROUPS section u have to set Openinfo.
It also depend on which database you are going to use.
In your service now you need to call tpopen() API from tpsvrinit() function.
- Other possibility is, take an implicit connection using Pro*C or Pro*Cobol whatever platform you are using.
EXEC SQL Connect ... -
How to connect informix database from informatica through JDBC instead of ODBC
How to connect informix database from informatica through JDBC instead of ODBC.
Hi mate,
You may get fast reply for this in informatica forums.
Thanks
http://mkashu.blogspot.com -
Unable to connect to database from D2K
Hi,
GoodDay, This is Ramesh. I have loaded both Oracle 9i & D2K in my PC. But i am getting some error message while trying to connect to database from d2k forms. I entered Usename, Password. The message is..
ORA-12203: TNS: Unable to connect to destination
The second time i entered both Username, Password & Database.
User Name: Scott
Passwors : tiger
Database: ORCL9i (SID name)
please let me know where i am lacking..?
Regards,
Ramesh.Do you connect when you set username , passwd , database....????
If you can via another tool , for example sql*plus then simply , copy the particular setting tns alias , you use to connect to this db, from [ORACLE_HOME]\network\admin\tnesanames.ora and paste it to [DEV2000_HOME]\network\admin\tnsnames.ora
Greetings,
Sim -
Getting exception ORA-12705 while trying to connect to database from forms 9i
Hello All,
I have installed 9i database and I gave path for oracle home as Oracle_path while installing. then I installed 9i dev suite, Installer forced me to use different Oracle home, so I gave Odev_path as path.
I have created server alias name from dev suite to Oracle database and I could connect to database from froms 9i. suddenly it started giving me the following exception when I try to connect database from forms 9i.
ORA-12705 invalid or unknown NLS parameter value specified
could some one help toresolve the issue.
Thanks in advance
RajI have already seen this document and tried it out, but it didn't work. And I have tried out numerous other tips that I have found in different places on the web.
Is the client installation of any relevance? I notice that this user has a different installation from the one that I have, and that he amongst other things doesn't have sql plus installed. -
Error connecting to database from Crystal Report
Hi,
I am using Crystal report 2008, .NET 3.5 on Windows Server 2008 + SQL Server 2008
I have a batch that generates report (via export) then this batch will send the exported report via email.
I am encountering this error when reading report from BO Server
Error: CrystalDecisions.CrystalReports.Engine.LogOnException: Database logon failed. ---> System.Runtime.InteropServices.COMException (0x8004100F): Database logon failed.
at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
While when trying to read the report from physical file within the server, it will give me this error
Error: CrystalDecisions.CrystalReports.Engine.InternalException: Failed to retrieve data from the database.
Details: [Database Vendor Code: 2812 ]
Failed to retrieve data from the database.
Error in File IAREPORT {92DFCAFC-58AC-4CB3-B9DD-A9565E07088D}.rpt:
Failed to retrieve data from the database.
Details: [Database Vendor Code: 2812 ] ---> System.Runtime.InteropServices.COMException (0x800002D3): Failed to retrieve data from the database.
Details: [Database Vendor Code: 2812 ]
Failed to retrieve data from the database.
Error in File IAREPORT {92DFCAFC-58AC-4CB3-B9DD-A9565E07088D}.rpt:
Failed to retrieve data from the database.
Details: [Database Vendor Code: 2812 ]
at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
The report is working in our SIT environment but it is not working in our UAT environment.
I have tried the following:
1) running the batch (that generates the report) in SIT environment to call SIT database
Working fine
2) running the batch (that generates the report) in SIT environment to call UAT database
Will give the above error
3) running the batch (that generates the report) in UAT environment to call UAT database
Will give the above error
4) running the batch (that generates the report) in UAT environment to call SIT database
Working fine
For reading report from BO Server, I have tried viewing the report directly and scheduling the report directly from BO Server and it works fine.
Also I have tried to 'verify database' on the UAT report, but it seems it didn't solve the issue.
Does anyone have any idea how to solve this? Or what could cause this?
Appreciate your help.
Thanks.Here's how I connect to the database
when reading report from bo server:
Dim enterpriseSession As CrystalDecisions.Enterprise.EnterpriseSession
Dim enterpriseService As CrystalDecisions.Enterprise.EnterpriseService
Dim infoObjects As CrystalDecisions.Enterprise.InfoObjects
Dim infoObject As CrystalDecisions.Enterprise.InfoObject
Dim infoStore As CrystalDecisions.Enterprise.InfoStore
Dim query As String = ""
query = "SELECT * FROM CI_INFOOBJECTS WHERE SI_PROGID = 'CrystalEnterprise.Report' AND SI_NAME LIKE '" & reportName & "'"
'Create a session manager
Dim sessionMgr As New CrystalDecisions.Enterprise.SessionMgr
'Log into BusinessObjects Enterprise
enterpriseSession = sessionMgr.Logon(cu.BOXIUser, cu.BOXIPwd, cu.BOXIServer, cu.BOXIAuthentication)
'Create the infostore object
enterpriseService = enterpriseSession.GetService("InfoStore")
infoStore = New CrystalDecisions.Enterprise.InfoStore(enterpriseService)
infoObjects = infoStore.Query(query)
If (infoObjects.Count > 0) Then
infoObject = infoObjects(1)
crDoc.Load(infoObject, enterpriseSession)
crDoc.SetParameterValue("@batchID", batchID)
Dim CrExportOptions As ExportOptions
Dim CrDiskFileDestinationOptions As New DiskFileDestinationOptions()
Dim CrPDFFormatOptions As New PdfRtfWordFormatOptions
Dim CrExcelFormatOptions As New ExcelFormatOptions
CrDiskFileDestinationOptions.DiskFileName = reportFile
CrExportOptions = crDoc.ExportOptions
With CrExportOptions
.ExportDestinationType = ExportDestinationType.DiskFile
.ExportFormatType = IIf(reportFormat = IAConstant.PDF, _
ExportFormatType.PortableDocFormat, _
IIf(FINRptFormat = IAConstant.EXCELONLY, _
ExportFormatType.ExcelRecord, ExportFormatType.Excel))
.DestinationOptions = CrDiskFileDestinationOptions
.FormatOptions = IIf(reportFormat = IAConstant.PDF, _
CrPDFFormatOptions, CrExcelFormatOptions)
End With
crDoc.Export()
Else
Throw New ApplicationException(Constant.APP_ERR & " - Report not found")
End If
The error is thrown when trying to export --> crDoc.Export()
The username and password are correct because it is the same username and password that the batch used to extract the data in the initial stage.
Here's how my batch works:
1) Extract and massage data directly from .net SP (this is working fine)
2) Obtain the report then use the same connection string (for physical path report) or use the report connection string (for bo server report), this report is using Stored Procedure (the problem starts here)
For reading report from bo server, I have also checked that the connection from the report itself is correct, because we can schedule/view the report from bo server successfully.
SQL Driver, is it the SQL Native Client you are saying? It's SQL Native Client 10.
I think we are using Business Objects Enterprise XI 3.1 Client Tools SP2 in our apps server. -
How to find the number of users connected to database from OS level(Linux)
Hi All,
Could anyone know , how to find the number of users connected to database without connecting with sql*plus
is there any command to find it?
example we have 10 databases in one server, how to find the number of users connected to particular database without connecting to database(v$session)?
oracle version:- 10g,11g
Operating System:- OEL4/OEL5/AIX/Solaris
any help will be appreciated.
Thanks in advance.
Thank you.
Regards,
Rajesh.Excellent.
Tested, works as long as you set the ORACLE_SID first ( to change databases )
ps -ef | grep $ORACLE_SID | grep "LOCAL=NO" | awk '{print $2}' | wc -l
Thanks!
select OSUSER
from V$SESSION
where AUDSID = SYS_CONTEXT('userenv','sessionid')
and rownum=1;Best Regards
mseberg -
To find out total number of sessions connected to database from DMZ node
Hi Experts,
We are in the process of auditing and i need detail data on this.Kindly help me to know ,how many sessions are connected to oracle database from DMZ node.Also let me know how can i get all the users connected from different node on daily basis?
Please let me know the sql query for this.
Thanks,
Prabhat.Try
select count(distinct d.user_name) from apps.fnd_logins a,
v$session b, v$process c, apps.fnd_user d
where b.paddr = c.addr
and a.pid=c.pid
and a.spid = b.process
and d.user_id = a.user_id
and (d.user_name = 'USER_NAME' OR 1=1); -
Not able to connect to database from client
Hi ALL.
I have a standby database and i am trying to connect to the database from the client machine. But i am getting the below error
C:\Documents and Settings\-adm-kuma3u-ram>sqlplus "sys/sysvgsm@vgsmstdby as sysdba"
SQL*Plus: Release 10.2.0.3.0 - Production on Mon Aug 30 09:15:08 2010
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
ERROR:
ORA-01031: insufficient privileges
If i use any user id to login i get the below error
Enter user-name: dbuptime/dbuptime@vgsmstdby
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
However i am able to login to the standby db from the host server and login with the above credentials. database is in mounted state.
Please help
Regards,
Aruntns ping is working fine
C:\Documents and Settings\-adm-kuma3u-ram>tnsping vgsmstdby
TNS Ping Utility for 32-bit Windows: Version 10.2.0.3.0 - Production on 30-AUG-2
Copyright (c) 1997, 2006, Oracle. All rights reserved.
Used parameter files:
I:\d001\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
OK (160 msec) -
Unable to connect to database from forms or reports
hi friends
i installed oracle9i database and oracle 9i D2K in 2 different drives with different homes
i am able to start database and the forms interface but i am unable to connect to the database from forms
what might be the error please clarify it
Bye
SrikumarThanks Farahd!
<br><br>
Interesting Info!
<br><br>
Raj<br><br>
<b>www.oraclebrains.com<a>
<br><font color="#FF0000" size="1">POWERED by the people, to the people and for the people WHERE ORACLE IS PASSION.</font></b>
Maybe you are looking for
-
I've seen a ton of these discussions around here but none of them seem to help my specific problem so hopefully somebody can help me out. We just bought InDesign CS5 at my job, I'm the lead graphics coordinator, and I'm getting runtime errors every t
-
Bug in copy and past in nokia n97 fw 21.0.045 prod...
bug in copy and past in nokia n97 fw 21.0.045 product code: 0575743 the bug iam make phone number in notes then copy the number when go to contact and then past it the number not past ? copy number from notes to contact not work !
-
I have facing some problem during running this script, any idea with the error show :: Exception in thread "main" java.lang.NullPointerException at com.side.ofac.API.LoginLoader.Load(LoginLoader.java:63) at com.side.ofac.API.SideApi.SoLogin(SideApi.j
-
That makes impossible to download it!
-
Bill value of Billing plan in CRM
Hi All, can you please suggest on FM or method to get the Bill value of Billing plan in CRM. Thanks in advance. Subhankar