OS Authentication in Solaris while using JDBC
hi,
I am trying to Authenticate a user, who is already connected to the database from a simple java class.
Here in this case i am using Oracle 10g.
My query is :
Authenticate the user from the Java program without providing the password.
The OS that i am using is Solaris.
If anyone has ever tried the same please let me know the solution.
Thanks in advance.
Suresh
Huh?
I am trying to Authenticate a user, who is already
connected to the database from a simple java class.If you are already connected why must you authenticate again?
Here in this case i am using Oracle 10g.
My query is :How is this a query?
Authenticate the user from the Java program without
providing the password.What magic are you hoping for that authenticates a user without a password. If you find one I think Oracle will be quite upset.
The OS that i am using is Solaris.Why would this be pertinent to authenticating a user through JDBC?
Your post is very difficult to understand. Perhaps you can restate the problem?
Similar Messages
-
Getting Sql Exception while using JDBC/ODBC to Excel 2007 through Java
Iam getting the SQLexception by trying to connect using JDBC/ODBC to Excel 2007 through Java. Any Guys can tell abt this problem. java.sql.SQLException: [Microsoft][ODBC Excel Driver] External table is not in the expected format.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcConnection.initialize(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at InteractWithExcel.main(InteractWithExcel.java:13)From [Google Groups|http://groups.google.co.uk/group/sybase.public.powerbuilder.general/browse_frm/thread/97fbab02a5e6d45b]
To use Excel as a datasource, you need to defined a named range in the spreadsheet, with the first row containing the column names. -
Error while using Jdbc receiver adapter
Hi,
Iam using a receiver jdbc adapter to update a table in my database.Here iam using 'UPDATE' as my action in the mapping.It is giving the foowing error....
Error while parsing or executing XML-SQL document: Error processing request in sax parser: No 'action' attribute found in XML document (attribute "action" missing or wrong XML structure)
Can Please anybody tell me what may be the problem with my scenario...
Thanks & Regards,
Radhika.Hi ,
action type should be attribute . Please go through the following structure for update .
<b>
<?xml version="1.0" encoding="UTF-8"?>
<ns1:MT_RESPONSE xmlns:ns1="http://com/Test">
<STATEMENT_NAME>
<TABLENAME action="UPDATE">
<TABLE>Utility</TABLE>
<access>
<Updated_On/>
</access>
<key>
<TrnHisID/>
</key>
</TABLENAME>
</STATEMENT_NAME>
</ns1:MT_RESPONSE></b>
query for above we may say as
<b>UPDATE Utility set Updated_On='' where TrnHisID =''</b>
Hope it helps
Regards.,
V.Rangarajan -
Hi ,
I tried to create an oracle pool by admin server. When I tried to ping it I got an error something like the cache name is already used.
When I tried to use it in my code I got another error :
'java.lang.ClassCastException: com.sun.gjc.spi.DataSource cannot be cast to oracle.jdbc.pool.OracleDataSource'
The pool properties I used are :
Url : dbc:oracle:thin:@servername:port:dbname
DataSourceName: OracleDataSource
ConnectionCacheName: cache2
ConnectionCachingEnabled: true
The code I used to get the connection :
OracleDataSource poolConnDs = null;
Connection poolConn = null;
try{
InitialContext jdbcContext = new InitialContext();
poolConnDs = (OracleDataSource)jdbcContext.lookup("java:comp/env/jdbc/jndi_pool_name");
poolConn = poolConnDs.getConnection();
ResultSet res = poolConn.createStatement().executeQuery("Select * from my_table");
}catch(Exception e){
e.printStackTrace();
}finally{
try{
poolConn.close();
}catch(Exception e){
e.printStackTrace();
Can anybody help me ??
Thanx in advanceYou should not be using com.sun.appserv.jdbc.DataSource in your code.
Neither OracleDataSource.
Change your code from
"poolConnDs = (OracleDataSource)jdbcContext.lookup("java:comp/env/jdbc/jndi_pool_name");"
to
"poolConnDs = (javax.sql.DataSource)jdbcContext.lookup("java:comp/env/jdbc/jndi_pool_name");"
Hope this works.
Thanks,
-Jagadish -
Problem while using jdbc in package
This is a package .... all the three programs work induvidually but if put in a package gives the error invalid cursor state
Program 1
import bank.*;
import java.io.*;
public class BankAccount
double Acc_Bal;
public static void main (String ar[])
int option;
try
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
do
System.out.print("Enter your Choice \n=================\n 1.New Coustomer \n 2.Existing coustomer \n 3.Exit \n\n >>");
option = Integer.parseInt(br.readLine());
switch(option)
case 1:
NewCou NC = new NewCou();
break;
case 2:
ExisCou EC = new ExisCou();
break;
case 3:
System.exit(0);
break;
default:
System.out.println("Invalid Entry");
break;
}while(option<3);
catch (IOException ie)
program 2
package bank;
import java.io.*;
import java.sql.*;
class NewCou
String Acc_Holder,Acc_Type,Query;
Connection con;
ResultSet rs;
int Acc_Num;
NewCou ()
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection("jdbc:odbc:ranjith","scott","tiger");
Statement stmt = con.createStatement();
rs = stmt.executeQuery("select acc from Coustomer");
while (rs.next()==true)
Acc_Num=rs.getInt(1);
System.out.println(Acc_Num);
Acc_Num = Acc_Num+1;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter Coustomer details \n Enter Coustomer Name >> ");
Acc_Holder=br.readLine();
System.out.print("Enter Account type >> ");
Acc_Type = br.readLine();
System.out.println("Account Number Alloted >> "+Acc_Num);
System.out.println("Account balance >> 0.00");
Query ="insert into Coustomer values ('"+ Acc_Holder +"',"+ Acc_Num +","+0+",'"+Acc_Type+"')";
stmt.executeQuery(Query);
catch (IOException ie){}
catch (ClassNotFoundException ce){}
catch (SQLException se){}
/*public static void main (String args[])
NewCou nc = new NewCou();
program 3
package bank;
import java.sql.*;
import java.io.*;
class ExisCou
String Query,name,type;
ResultSet rs;
int st,bal;
ExisCou()
try
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter Account number >> ");
st = Integer.parseInt(br.readLine());
Query = "select * from Coustomer where acc like "+st;
System.out.println(Query);
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager.getConnection("jdbc:odbc:ranjith","scott","tiger");
Statement stmt = con.createStatement();
rs = stmt.executeQuery(Query);
rs.next();
if (rs == null)
System.out.println("Invalid Account Number "+rs);
else
name=rs.getString(1);
bal = rs.getInt(3);
type=rs.getString(4);
System.out.println(" Name : "+name );
System.out.println(" Account Number : "+st );
System.out.println("Balance : "+bal);
System.out.println("Account type : "+type);
catch (IOException ie){}
catch (NullPointerException ne)
System.out.println("Invalid Account Number");
ExisCou ex = new ExisCou();
catch (SQLException se){System.out.println(se);}
catch (ClassNotFoundException ce) {}
/*public static void main (String args[])
ExisCou ec = new ExisCou();
}any body help me please
-
Data security concern while using JDBC
My java application connecting to a database to read patient information. Do I have to worry about encrypting the data? I am using oracle jdbc driver. Is there any chance, anyone can read the data on transit?
In theory it is possible. In practice I don't know that there are any recorded instances outside NSA. I've read that there are no known cases of credit card numbers being harvested from plaintext IP traffic.
Your question should really be directed to your employer or the customer.
If you're on an Intranet I would forget about it; if you're using the Internet it may be required to use SSL. -
Facing problem while using JDBC Storage option in FileStoreProvider
HI all,
We are using oracle 11.1.1.6.0 version and 11.2.0.1.0 of Oracle Database 11g Enterprise Edition.
In order to use the JDBC storage option , we are follwing the below steps:
1. On your Content Server instance, install and enable the FileStoreProvider component.
2. Configure FileStoreProvider to create a JDBC storage rule as desired.
3. Upon restart of Content Server, FileStoreProvider will create the table to store files.
4. Log into the database instance for Content Server
5. Drop the filestorage table created by FileStoreProvider (which uses Basic LOBs)
6. Recreate the filestorage table to leverage SecureFiles.
Here is a *sample*
CREATE script: CREATE TABLE filestorage ( DID number(38), DRENDITIONID VARCHAR2(30), DLASTMODIFIED TIMESTAMP(6), DFILESIZE NUMBER(38), DISDELETED VARCHAR2(1), BFILEDATA BLOB, CONSTRAINT PK_FILESTORAGE PRIMARY KEY (DID, DRENDITIONID)) LOB(BFILEDATA) STORE AS SECUREFILE TABLESPACE ;
Now when we checked in a new item in the content server, the details of the content is not getting updated in the DB.
Please provide your inputs. Do we need to do any other configuration changes?
Thanks in advance,Could you please specify what you mean by "the details of the content is not getting updated in the DB"?
Does it mean that the checkin service fails? Or, it succeeds (you can verify from gui that both metadata and content were updated), but you cannot find updates in the database? -
Sql query slow while using poc *C, OCI
Sql query is taking long time while using fetching records from RAC using Pro *C, OCI. Same query working fine while using JDBC connection.what could be the issue.Please help
Thanks,
SamPro*C is not part of Oracle Solaris Studio (formerly Sun Studio). Studio has no special support for database programming. You are more likely to get a helpful answer in a database programming forum. Start here:
https://forums.oracle.com/forums/category.jspa?categoryID=18 -
How to use JDBC database connection in Solaris
Hi all,
I am new to Solaris and i want to create an application using JDBC database connection.
I want a small piece of code, probably a login page code that verifies the username from a OpenOffice database (.odb) file. I am particular to know the driver name, etc. If possible give the code using JNDI loopkup.
Thanks in advance,
Parasou.Sure no problem.
Please stand by while I do your work for you. -
HTTP error while downloading solaris patches using wget
Hello,
I am getting a HTTP error while downloading solaris patches using wget.
'Downloading unsigned patch 113096-03.
--2010-06-18 03:51:15-- http://sunsolve.sun.com/pdownload.pl?target=113096-03&method=h
Resolving sunsolve.sun.com (sunsolve.sun.com)... 192.18.108.40
Connecting to sunsolve.sun.com (sunsolve.sun.com)|192.18.108.40|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://sunsolve.sun.com/pdownload.do?target=113096-03&method=h [following]
--2010-06-18 03:51:15-- http://sunsolve.sun.com/pdownload.do?target=113096-03&method=h
Reusing existing connection to sunsolve.sun.com:80.
HTTP request sent, awaiting response... 401 Unauthorized
Unknown authentication scheme.
Authorization failed.
Problem downloading 113096-03.
What am i missing here... The credentials to login to sunsolve are correct and are updated in the downloadpatch.sh script.
Please assist
Thanks
SunnyTry download via browser url:
[http://sunsolve.sun.com/pdownload.pl?target=113096-03&method=h]
You need a valid support contract not just Sunsolve account for many patches. -
OS Authentication using JDBC Thin driver
Hi
I have a problem while connecting to Oracle database using JDBC Thin Driver, Basically I am trying to connect using OS Authentication. The following explains clearly what I am trying to do.
String connectionURL = "jdbc:oracle:thin:@localhost:1521:XYZ";
String userName = "/";
String password = "";
java.util.Properties info = new java.util.Properties();
info.setProperty("user",userName);
info.setProperty("password",password);
conn = DriverManager.getConnection(connectionURL,info);
When executing the code I am getting an exception as follows.
java.sql.SQLException: Null user or password not supported in THIN driver
When i searched in the Oracle site i got the below information
Note:
By default, the JDBC driver retrieves the OS username from the user.name system property, which is set by the JVM. If the JDBC driver is unable to retrieve this system property or if you want to override the value of this system property, then you can use the OracleConnection.CONNECTION_PROPERTY_THIN_VSESSION_OSUSER connection property. For more information, see Oracle Javadoc.
I want to know how to set the OracleConnection.CONNECTION_PROPERTY_THIN_VSESSION_OSUSER connection property.
Advance ThanksBased on your code, when you try to connect your username is null and the password is "/". You are not going to be able to get the OS password using Java.
-
Executable JAR using ADF displays JBO-26061: Error while opening JDBC conn.
I'm trying to create a simple Java Desktop Application (ADF) in JDeveloper 11g (11.1.2.3.0) which will run on Windows XP (SP3) simply by clicking the JAR file. I have encountered many problems and found solutions but I am now completely stuck. Currently when I execute the JAR I get (oracle.jbo.DMLException) JBO-26061: Error while opening JDBC connection.
Inside JDeveloper it runs perfectly but I want it to run without JDeveloper. If I run the executable string JDeveloper displays when you click run, this also works fine.
Here's what I've done -
Created a demo app using the 'Building a Java Swing application with Oracle ADF' tutorial as a proof of concept.
Created a deployment profile 'Client Jar Deployment Profile'
Create a new file group to include all the JAR files.
Create a manifest.mf listing all the JAR files - making sure not to exceed 70 bytes on each line and every new line starts with 2 spaces and at the end of the line there is no trailing spaces.
Made sure the jps-config.xml and cwallet.sso is included in the META-INF folder of the JAR.
I've deployed the JAR file to a folder which contains all the associated JAR files, made sure the manifest.mf is pointing to the correct files and executed my jar (double clicked it) after a short pause (2-3 seconds) that's when the error pops up.
Here is the error stack
oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:218)
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:45)
at oracle.jbo.server.ConnectionPoolDataSource.getConnection(ConnectionPoolDataSource.java:72)
at oracle.jbo.server.ConnectionPoolDataSource.getConnection(ConnectionPoolDataSource.java:61)
at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:968)
at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1147)
at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:298)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:329)
at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9053)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
at oracle.adf.model.binding.DCBindingContainer.setDataControl(DCBindingContainer.java:571)
at oracle.jbo.uicli.jui.JUPanelBinding.useDefaultDataControl(JUPanelBinding.java:912)
at oracle.jbo.uicli.jui.JUPanelBinding.setup(JUPanelBinding.java:125)
at view.Form.setBindingContext(Form.java:370)
at view.Form.main(Form.java:425)
Here is my manifest
Manifest-Version: 1.0
Class-Path: adf-controller-security.jar adf-dt-at-rt.jar adf-share-bas
e.jar adf-share-ca.jar adf-share-security.jar adf-share-support.jar a
dfdt_common.jar adflibrary.jar adflogginghandler.jar adfm.jar adfshar
embean.jar adftransactionsdt.jar bc4j-mbeans.jar bc4jimdomains.jar ca
che.jar commons-cli-1.0.jar commons-el.jar db-ca.jar dms.jar dvt-jcli
ent.jar dvt-utils.jar fmw_audit.jar forms-1.0.6.jar groovy-all-1.6.3.
jar identitystore.jar inspect4.jar jacc-spi.jar javatools-nodeps.jar
javax.activation_1.1.0.0_1-1.jar javax.jsp_1.2.0.0_2-1.jar javax.mail
_1.1.0.0_1-4-1.jar javax.management.j2ee_1.0.jar javax.management_1.2
.1.jar javax.security.jacc_1.0.0.0_1-1.jar javax.servlet_1.0.0.0_2-5.
jar jdev-cm.jar jdev-rt.jar jewt4.jar jmf.jar jmxframework.jar jmxspi
.jar jps-api.jar jps-common.jar jps-ee.jar jps-internal.jar jps-manif
est.jar jps-unsupported-api.jar jsp-el-api.jar ldapjclnt11.jar list.t
xt mdsrt.jar META-INF model ojdbc6dms.jar ojdl.jar ojmisc.jar oracle-
el.jar oracle.ucp_11.1.0.jar oraclepki.jar orai18n-mapping.jar orai18
n.jar oramds.jar ordhttp.jar ordim.jar osdt_cert.jar osdt_core.jar os
dt_ws_sx.jar osdt_xmlsec.jar resourcebundle.jar runtime12.jar share.j
ar xml.jar xmlef.jar xmlparserv2.jar
Main-Class: view.Form
All of these JARs are in the same folder as my JAR.
Here's the tutorial i followed - http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_19/jdtut_11r2_19.html
Any help would be greatly appreciated. Perhaps I'm misunderstanding and Java/ADF applications are not supposed to work without the WLS.
Many thanks,
Christian.
Edited by: ChrisDugdale on Nov 15, 2012 2:41 AMThat's excellent advice, changing the connection type, I tried this before, it still gives the same error so I didn't think it had much to do with my problem but what I didn't notice is it gives a more meaningful error stack - see below, compared to my original error stack, i think you're on to something good! So, clearly the password isn't being packaged into the JAR, now I thought this might be happening which is why I added "DeployPassword" in the connections.xml file but that hasn't made a difference. I can see the connections.xml in my JAR if i expand it in the META-INF folder, so I know that's included ok, along with jps-config.xml/adf-config.xml/adfm.xml/cwallet.sso/MANIFEST.MF also in the META-INF folder (inside the JAR)
I can see the password element contains no value, but I tried changing this before with no luck. I'll try again.
connections.xml -
<?xml version = '1.0' encoding = 'UTF-8'?>
<References xmlns="http://xmlns.oracle.com/adf/jndi">
<Reference name="FOD" className="oracle.jdeveloper.db.adapter.DatabaseProvider" credentialStoreKey="FOD" xmlns="">
<Factory className="oracle.jdeveloper.db.adapter.DatabaseProviderFactory"/>
<RefAddresses>
<StringRefAddr addrType="sid">
<Contents>DEVSHED</Contents>
</StringRefAddr>
<StringRefAddr addrType="subtype">
<Contents>oraJDBC</Contents>
</StringRefAddr>
<StringRefAddr addrType="port">
<Contents>1521</Contents>
</StringRefAddr>
<StringRefAddr addrType="hostname">
<Contents>moe</Contents>
</StringRefAddr>
<StringRefAddr addrType="user">
<Contents>fod</Contents>
</StringRefAddr>
<SecureRefAddr addrType="password"/>
<StringRefAddr addrType="DeployPassword">
<Contents>true</Contents>
</StringRefAddr>
<StringRefAddr addrType="oraDriverType">
<Contents>thin</Contents>
</StringRefAddr>
</RefAddresses>
</Reference>
</References>
oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:207)
at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:166)
at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580)
at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:313)
at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:102)
at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:52)
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:129)
at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:978)
at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1147)
at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838)
at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:130)
at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:213)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9053)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
at oracle.adf.model.binding.DCBindingContainer.setDataControl(DCBindingContainer.java:571)
at oracle.jbo.uicli.jui.JUPanelBinding.useDefaultDataControl(JUPanelBinding.java:912)
at oracle.jbo.uicli.jui.JUPanelBinding.setup(JUPanelBinding.java:125)
at view.Form.setBindingContext(Form.java:370)
at view.Form.main(Form.java:425)
Caused by: java.sql.SQLException: ORA-01005: null password given; logon denied
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:397)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:389)
at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:689)
at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:452)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:384)
at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:811)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:411)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:678)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:238)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:34)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:567)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:144)
at oracle.jbo.server.URLConnectionHelper.getConnectionFromDriver(URLConnectionHelper.java:50)
at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:195)
... 31 more
## Detail 0 ##
java.sql.SQLException: ORA-01005: null password given; logon denied
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:397)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:389)
at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:689)
at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:452)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:384)
at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:811)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:411)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:678)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:238)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:34)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:567)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:144)
at oracle.jbo.server.URLConnectionHelper.getConnectionFromDriver(URLConnectionHelper.java:50)
at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:195)
at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:166)
at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580)
at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:313)
at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:102)
at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:52)
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:129)
at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:978)
at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1147)
at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838)
at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:130)
at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:213)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9053)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
at oracle.adf.model.binding.DCBindingContainer.setDataControl(DCBindingContainer.java:571)
at oracle.jbo.uicli.jui.JUPanelBinding.useDefaultDataControl(JUPanelBinding.java:912)
at oracle.jbo.uicli.jui.JUPanelBinding.setup(JUPanelBinding.java:125)
at view.Form.setBindingContext(Form.java:370)
at view.Form.main(Form.java:425)
----- Level 1: Detail 0 -----
java.sql.SQLException: ORA-01005: null password given; logon denied
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:397)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:389)
at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:689)
at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:452)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:384)
at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:811)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:411)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:678)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:238)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:34)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:567)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:144)
at oracle.jbo.server.URLConnectionHelper.getConnectionFromDriver(URLConnectionHelper.java:50)
at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:195)
at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:166)
at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580)
at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:313)
at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:102)
at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:52)
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:129)
at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:978)
at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1147)
at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838)
at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:130)
at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:213)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9053)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
at oracle.adf.model.binding.DCBindingContainer.setDataControl(DCBindingContainer.java:571)
at oracle.jbo.uicli.jui.JUPanelBinding.useDefaultDataControl(JUPanelBinding.java:912)
at oracle.jbo.uicli.jui.JUPanelBinding.setup(JUPanelBinding.java:125)
at view.Form.setBindingContext(Form.java:370)
at view.Form.main(Form.java:425) -
Error while updating database using jdbc receiver adapter
Hi All,
I am trying to update a single record using jdbc receiver adapter.
This is my the message that is getting created..
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:Data xmlns:ns0="urn:Test">
- <STATEMENT>
- <TABLENAME ACTION="UPDATE_INSERT">
<TABLE>ORDERS</TABLE>
- <ACCESS>
<OrderID>99999</OrderID>
<CustomerID>VICTE</CustomerID>
<EmployeeID>3</EmployeeID>
<ShipAddress>VICTE</ShipAddress>
</ACCESS>
- <KEY>
<OrderID compareOperation="EQ">99999</OrderID>
<ShipAddress compareOperation="EQ">VICTE</ShipAddress>
</KEY>
</TABLENAME>
</STATEMENT>
</ns0:Data>
But in Adapter Monitoring i am getting the following error..
<i>Error while parsing or executing XML-SQL document: Error processing request in sax parser: Error when executing statement for table/stored proc. 'ORDERS' (structure 'STATEMENT'): java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near 'VICTE'.</i>
Regards,
RahulRahul,
> In this case i believe the interface has to be synch.
> So what will the response message type be like..
Not necessary. UPDATE can be asynch as well.
Can you turn the trace on like pointed by Michal and then you can see the Query in the Audit Log of the adapter montioring. Try to execute the same query from your DB Client like TOAD and see what is the Syntax error you are getiing.!
The problem looks like some field has some dataype / column name mismatch.
Regards
Bhavesh -
I have two forests with a transitive on-way trust between them: PROD -> TEST (test trusts PROD). I had previously had kerberos authentication working with winrm from PROD to machines in TEST. I have verified the trust is healthy, I also verified users
in TEST can use WINRM with kerberos just fine. Users from PROD cannot connect via kerberos to machines in TEST with winrm.
I have verified the service has registered the appropriate SPNs. I ran dcdiag against all my PROD and TEST domain controllers and didn't find anything that would prevent kerberos from happening. I even tried disabling the firewall entirely on my TEST dcs
but that didn't gain me anything.
I've enabled kerberos logging but only see the expected errors such as it couldn't find a PROD SPN for the machine, which it shouldn't from what I understand, it should go to the TEST domain and find the SPN from there.
I'm really out of next steps before I call PSS and hope someone here has run into this and could provide me some next steps.
PowerShell Error:
Connecting to remote server failed with the following error message : WinRM cannot process the request. The following error occured while using Kerberos authentication: The network path was not found.
Possible causes are:
-The user name or password specified are invalid.
-Kerberos is used when no authentication method and no user name are specified.
-Kerberos accepts domain user names, but not local user names.
-The Service Principal Name (SPN) for the remote computer name and port does not exist.
-The client and remote computers are in different domains and there is no trust between the two domains.
After checking for the above issues, try the following:
-Check the Event Viewer for events related to authentication.
-Change the authentication method; add the destination computer to the WinRM TrustedHosts configuration setting or use HTTPS transport.
Note that computers in the TrustedHosts list might not be authenticated.
-For more information about WinRM configuration, run the following command: winrm help config. For more information, see the about_Remote_Troubleshooting Help topic.
+ CategoryInfo : OpenError: (:) [], PSRemotingTransportException
+ FullyQualifiedErrorId : PSSessionStateBroken
winrs Error:
Winrs error:
WinRM cannot process the request. The following error occured while using Kerberos authentication: The network path was not found.
Possible causes are:
-The user name or password specified are invalid.
-Kerberos is used when no authentication method and no user name are specified.
-Kerberos accepts domain user names, but not local user names.
-The Service Principal Name (SPN) for the remote computer name and port does not exist.
-The client and remote computers are in different domains and there is no trust between the two domains.
After checking for the above issues, try the following:
-Check the Event Viewer for events related to authentication.
-Change the authentication method; add the destination computer to the WinRM TrustedHosts configuration setting or use HTTPS transport.
Note that computers in the TrustedHosts list might not be authenticated.
-For more information about WinRM configuration, run the following command: winrm help config.Hi Adam,
I'm a little unclear about which SPNs you were looking for, in which case could you confirm you were checking that on the computer object belonging to the actual destination host it has the following SPNs registered?
WSMAN/<NetBIOS name>
WSMAN/<FQDN>
If you were actually trying to use WinRM to connect to the remote forest's domain controllers, then what you said makes sense, but I was caught between assuming this was the case or you meant another member server in that remote forest.
Also, from the client trying to connect to this remote server, are you able to telnet to port 5985? (If you've used something other than the default, try that port)
If you can't, then you've got something else like a firewall (be that the Windows firewall on the destination or a hardware firewall somewhere in between) blocking you at the port level, or the listener on the remote box just isn't working as expected. I
just replied to your other winrm post with steps for checking the latter, so I won't repeat myself here.
If you can telnet to it and the SPNs exist, then you might be up against something called selective authentication which has to do with how the trust was defined. You can have a read of
this to learn a bit more about selective trusts and whether or not it's affecting you.
Cheers,
Lain -
Problem with Progress DB while using to connect using JDBC Adapter
Hi,
I am facing Problem with Progress DB while using to connect using JDBC Adapter. I am getting the following error in auditlog file like,
Error during database connection to the database URL jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb
/devsche/i_apoext.db using the JDBC driver "com.progress.sql.jdbc.JdbcProgressDriver" : com.sap.aii.adapter.jdbc.sql.DriverManagerException: Unable to locate a suitable JDBC driver to establish a connection to URL " jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb
/devsche/i_apoext.db "
I tried using the following all URLs,
1. jdbc:JdbcProgress:T:156.5.31.65:2545:i_apoext.
2. jdbc:JdbcProgress:T:156.5.31.65:2545:i_apoext.db
3.
jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb
/devsche/i_apoext.
4.
jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb
/devsche/i_apoext.db.
Can anyone please help me out in solving this issue.
May be the cause for this is :
1) The Wrong URL format
2) CLASSPATH is not setted properly..
Can you look more into this stuff.
Thanks,
Soorya.Hi,
To access any database fromm XI, using the JDBC adapter, the corresponding drivers have to be installed on the XI server.
Just check this note 831162.
Also, check this PDF to install Drivers in XI,
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10
Maybe you are looking for
-
I am trying to output a customer list containing customer number and customer name using 11i ( 11.5.10 CU2) with latest XML publisher patches on. How do I debug the following error in OPP log: [UNEXPECTED] [72156:RT1088889] oracle.xml.parser.v2.XMLPa
-
How do I copy an App from my wife's phone to mine
My wife has a free App from a 3rd party authorised provider that I would find very useful. Its a gateway to a government work related suite of password secured websites. She can't remember where it came from and no amount of searching can find it. An
-
No sound after 10.4.6 update
hi everyone Last thursday I installed the update 10.4.6 for PowerPC and after it, my ibook has no sound. At startup I can hear the "daannn" (sound at startup), but when Mac OS X is ready, has no sound, no microphone, nothing! A strange thing is that
-
HT4865 how do i unlock my ipod when lock up
how do i unlock my device
-
System.DirectoryServices.Protocols.SearchRequest Ldap Query Execution Problem
Hi, I am using DirectorySearcher class to query the active directory. It gives all the records in a single page (more than 5000). I want to get 100 records per page. So I moved to SearchRequest class. Using SearchRequest class I can get 100 reco