Wanna create a connection
Hi,
Within Jdeveloper, I try to create one JDBC connection. I've put the SID name and the right Port number that we have within tnsnames.ora. I've chosen 'thin' Driver and have put that host name (also from tnsnames.ora) together with the right SID. But i'm with this problem even if I've put the right login name/password.
Test failed: ORA-01017: invalid username/password; logon denied
I don't have any problem from the Oracle client using Sql plus.
Rgds,
HuaMin
Hi,
It is always a good to post the following when you ask for any help, which would help us to understand the issue and provide a good solution, instead of guessing and providing "some" solution.
1. JDeveloper version.
2. Technology stack used.
3. Database version.
4. OS on which you are trying.
AFA your error is concerned, it is pretty clear that you are supplying invalid username/password. Did you try with scott/tiger? FYI, if your db is 11g, passwords are case sensitive.
HTH.
-Arun
Similar Messages
-
Well i have transferred an xcel sheet to oracle10g and created and application using forms 6i. The thing is some fields in excel sheet gets updated every month.
Like:HOLIDAYS AVAILABLE, HOLIDAYS AVAIL,EVALUATION.
I wanna create a seperate application to update this specific tables in oracle10g using 6i.
FOR EX.Once concerned person gets the monthly xcel sheet he just needs to type the emp number and enter the associated values in the respective fields clicks UPDATE button the old value gets over written(update) with the new value.
I would really be glad if some one could provide me with a code to update tables in oracle 10g using 6i for even one column i.e HOLIDAYS AVAILABLE .......
The thing is i am a newbie in the field of forms n report...!!!!!!!!!!!!! and i m on a probation period here...so plz guyz i desperately need helppppppppppppppppppppp!!!!!!!!!!!!!!!!Hi!
- open the forms builder, connect as user who owns the desired table
- create a new form (file - new - form) in the menu, give it a name and save it
- in the navigator click on datablocks
- click the green +* in the left vertical toolbar
- use the datablock wizzard to create a new block (basing on a database table)
- choose table or view and click next
- in the table or view field type the table name and click refresh
- put every desired field in the field database objects and click next
- do not use the relation screen and click next
- give the datablock a name or keep the default. Click Finish ^(?: my forms is german ...)^
- The layout wizzard getting started. Choose "new canvas" and click next.
- choose the columns you want to see in your form. click next
- May change the field-prompts, width and height. This can be done later too. click next
- choose if you want to display the fields like a form or like a grid. click next
- forms will create a border around your fields. Choose the title, displayed records and if you want a scrollbar. click next
- choose Finish and look at this nice screen :)
Save the form (ctrl-s) and compile it (ctrl-t).
- let it run! (ctrl-r)
- press F8. If there is already data in your table, you will see the first record or more.
Be careful! if your table is a production table, changing values in the fields
and save (commit) the changes will immediate change the data in the database table.
Good luck and have fun !
Regards -
Unexpected Behavior error while creating a connection in IDT
Hi Everyone,
I have created a connection on top of a database using ODBC.
I could able to see the connection in IDT.
I have mentioned the user name and pw correctly and tried testing the connection and got the error "unexpected behavior"
PFA error.
what could be the reason? any idea?
Thanks.I find this 32-bit vs. 64-bit ODBC somewhat confusing. I know you aren't dealing with Crystal Reports, but this blog post does provide some clarity. It has a link to this Microsoft knowledge base article from which I quote...
A 64-bit version of the Microsoft Windows operating system includes the following versions of the
Microsoft Open Database Connectivity (ODBC) Data Source Administrator tool (Odbcad32.exe):
The 32-bit version of the Odbcad32.exe file is located in the %systemdrive%\Windows\SysWoW64 folder.
The 64-bit version of the Odbcad32.exe file is located in the %systemdrive%\Windows\System32 folder.
One other warning. In my experience I have found that you cannot run both the 32-bit and 64-bit ODBC admin tools at the same time. If you have one running and try and start the other one it will just bring up the one you already had running.
To make sure I know which instance I am in at any give time I have created a dummy data source that corresponds to the instance; 32-bit or 64-bit.
Let us know how it goes.
Noel -
Can not create the connection in the enrironment!!
hello,every one:
please see the following code:
Environment *env = Environment::createEnvironment(Environment::OBJECT);
Connection *conn = env->createConnection(userName,password,connectString);
try
//use the conn
catch (SQLException &ex)
env->terminateConnection(conn);
Environment::terminateEnvironment(env);
throw;//re-throw
env->terminateConnection(conn);
Environment::terminateEnvironment(env);
Environment *ev = Environment::createEnvironment(Environment::OBJECT);
//the program stopped here,display i can not create the new connection
Connection *cn = ev->createConnection(userName,password,connectString);
ev->terminateConnection(cn);
Environment::terminateEnvironment(ev);
I have terminated the connection and the environment,then why I can not create the
connection in the new environment?
I have tried several times,if you connect the same database as the former,then it
does not work,but if you connect a new database ,it can create the new connection!
plus:I don't want to use conection pool .
Can I have some method to solve the problem?
Please help me!
Thanks a lot in advance!
tony from ChinaHi Tony,
This similar sample works perfectly fine for me. Can you
retry with this?
#include <iostream>
#include <occi.h>
using namespace std;
using namespace oracle::occi;
int main()
Environment *env = Environment::createEnvironment(Environment::OBJECT);
Connection *conn = env->createConnection("scott","tiger","inst1");
try
//use the conn
catch (SQLException &ex)
env->terminateConnection(conn);
Environment::terminateEnvironment(env);
cout<<ex.getMessage();
env->terminateConnection(conn);
Environment::terminateEnvironment(env);
Connection *cn;
Environment *ev;
try{
ev = Environment::createEnvironment(Environment::OBJECT);
cn = ev->createConnection("scott","tiger","inst1");
catch (SQLException &ex)
ev->terminateConnection(cn);
Environment::terminateEnvironment(ev);
cout<<ex.getMessage();
ev->terminateConnection(cn);
Environment::terminateEnvironment(ev);
}Rgds
Amogh -
Create A Connection Pool In the ServletContextListener
The Specification says that we should create the connection pool in the ServletContextListener. I have the code for creating a connection pool (see below). How do I create it in the ServletContextListener?
import java.sql.Connection;
import java.sql.SQLException;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.sql.DataSource;
public class DBConnection
public static Connection getDBConnection() throws SQLException
Connection conn = null;
try
InitialContext ctx = new InitialContext();
DataSource ds = ( DataSource ) ctx.lookup( "java:comp/env/jdbc/MySQLDB" );
try
conn = ds.getConnection();
catch( SQLException e )
System.out.println( "Open connection failure: " + e.getMessage() );
catch( NamingException nEx )
nEx.printStackTrace();
return conn;I use the connection pool feature provide by the server I use. Is this what I should do? Please confirm.
import java.sql.Connection;
import java.sql.SQLException;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.sql.DataSource;
import javax.servlet.*;
public class CreateResources implements javax.servlet.ServletContextListener
public void contextInitialized(ServletContextEvent sce)
public static Connection getDBConnection() throws SQLException
Connection conn = null;
try
InitialContext ctx = new InitialContext();
DataSource ds = ( DataSource ) ctx.lookup( "java:comp/env/jdbc/MySQLDB" );
try
conn = ds.getConnection();
catch( SQLException e )
System.out.println( "Open connection failure: " + e.getMessage() );
catch( NamingException nEx )
nEx.printStackTrace();
return conn;
public void contextDestroyed(ServletCotnextEvent sce)
} -
11g 64-bit unable to create ODBC connection
Hello,
I am currently facing issue related to ODBC connection. Details of configuration is as follows
OS: Vista 64 Home Premium
Oracle DB 11g 64bit: ver 11.1.0.6.0,plus the addition of the fix for bug 7389110 (as per release notes)
ODBC driver location: C:\app\oracle\product\11.1.0\db1\BIN\sqora32.dll
It appears and works well from 32 bit ODBC connection manager. However, it's not visible/available from 64 bit ODBC connection manager. Oracle installation repository appears under 64 bit area ("Program Files") and not under "Program Files (x86)". Assuming it might be a problem with installation I have also tried copying registry entries under HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC with no luck.
Any help to create ODBC connection is much appreciated
Thanks,
Hemant
Please do not respond to this question here. I am moving it to ODBC forum area
Edited by: user6868322 on Aug 5, 2009 2:04 PMOpening new tread under ODBC forum and closing this
-
How to create a connection key for an intranet
I'm trying to create a connection key for a client of ours to
update a page on their intranet. The intranet is only available
internally. How do I go about doing this?Hi
Please create the account keys or transaction keys in
SPRO-> IMG-> MM-> Purchasing-> Conditions-> Define Price Determination Process-> Define Transaction/Event Keys
Thanks & Regards
Kishore -
How do I create a connection string to sql server?
Hi All,
I am currently connecting to a SQL Server via ODBC DSN connection. I am wondering how do I create a connection string directly to a sql server without a DSN connection?
Thank you in advance.If you have SQL Server or client installed in your machine you can directly connect to SQL server using native connection. When you create new report you can see the option create new connection, here you can see SQL Server. Expand it and enter the connection details where you will be directly connected to SQL Server without ODBC connection.
Regards,
Raghavendra -
How to create a connection pooling in Netbeans 6.0 using the oracle driver
hi all,
I am using Netbeans 6.0. Apache Tomcat 6.0.14 server, oracle 9i.
I tried to create a connection pooling using tomcat web server.
I have included the following code in context.xml and web.xml.
CONTEXT.XML:
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/network1">
<Resource name="jdbc/myoracle"
auth="Container"
type="javax.sql.DataSource"
username="scott"
password="tiger"
factory="BasicDataSourceFactory"
driverClassName="oracle.jdbc.OracleDriver"
url="jdbc:odbc:thin:@127.0.0.1:1521:mydb"
maxActive="20"
maxIdle="10"
maxwait="-1"/>
</Context>
WEB.XML:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<resource-ref>
<description>Oracle Datasource example</description>
<res-ref-name>jdbc/myoracle</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
After that i have included the following JDBC driver's jar files in the $Catalina_Home/lib folder.
classes 111.jar,
classes 111_g.jar
classes12.jar
classes 12_g.jar
classes12dms.jar
classes12dms_g.jar
nls_charset11.jar
nls_charset12.jar
ocrs12.jar
ojdbc14.jar
ojdbc14_g.jar
Then i stop the tomcat web server and start it again.
In jsp page i have included the following code:
Context ctx=new InitialContext();
Context envctx=(Context)ctx.lookup("java:comp:env");
DataSource ds=(DataSource)envctx.lookup("jdbc/myoracle");
Connection con=ds.getConnection(); ----->(In this line an error occured that Connection class cannot be found.)
please help me how to create a connection pooling and rectify the error in conneciton.
Thanks in advancePlease refer
http://www.netbeans.org/kb/60/web/customer-book.html -
How to Create a connection pool in OSB java callout
Dear Team,
In our project, we need read some data from DB, and do corresponding operation. currently, we need setup the connection first, execute the SQL, and close the connection.
But the concurrency of call is very high, is there a way to create a connection pool, then we can use the connection pool to get the connection and execute the SQL, then return the connection to the pool.
if connection pool is not available, is there any way to create the connection outside the java callout, that we can just execute the SQL in java callout.
The OSB version is 11.1.1.6.0
Thanks.
Best Regards,
Raysen Jia
Edited by: Raysen Jia on Oct 16, 2012 8:44 AMHi Team,
Thanks for your help.
What I need is not only the db connection, may be other kind of things, such as read configuration from file...
If I write the code in java callout with static java method to create and close the connection, each time when request come in, OSB will create a new connection (or read the file), I think it's not the best practice to do this kind of work.
I think the weblogic is running in JVM, is there any way we can define variables or new object in the JVM directly? -
SBO0001 error DBD:ORA12154 error while creating new connection
Dear All,
I have installed XIR3 on a windows 64 bit with oracle 10g R2 client.
The CMS is up and running and I am able to connect to the infoview and view the lsit of all the migrated objects from BOXIR2.
But, when I am trying to create a new connection for the universe or trying to execute the existing reports i am getting the following error.
(i.e I guess BO is unable to connect to DB)
*SBO0001 error DBD:ORA12154 error while creating new connection
I tried various solution from BOB but still could not solve this. Please anyone suggest few tips regarding this case
Business objects: CMS is running and able to connect to infoview and able to log on to CMC
Database client: Able to log on to DB using sqlplus and tnsping is working.
the details of the software are as follows
*BO Server configuration
OS: Windows Server 2008 R2 64 bit
Business Objects XI R3 3.0
Oracle client 10gR2 32 bit
*Database server configuration
Oracle 11g R2 64 bit
Thanks,
MikeMike :
I am having a similar issue with the BOE and Oracle.
Can you please provide details of which Oracle client you ended-up using..?
32-bit or 64-bit...?
Oracle client version...?
Specific client patches applied..?
Thanks,
Mark -
Error while creating a connection from JDeveloper to OC4J instance on 9iAS
I m trying to create a connection to the application server(9iAS release 2) from the JDeveloper(9.0.2.822) using the JDeveloper connection wizard. I followed all the steps, but when i click on "Test Connection" button to test the connection the error i get is "IO Error: Connection refused: connect". The description of the settings i provided in the wizard step are as follows,
Step 1
Connection name:- Connection1
Connection Type:- Oracle 9i Application Server
Step 2
Username:- admin
Password:- welcome
Deploy Password checkbox: Unchecked
Step 3 (the 9iAS server address is 192.168.30.162)
URL:- ormi://192.168.30.162/
Target Web Site:- http-web-site
Local dir where admin.jar is installed for Oracle 9iAS is installed:- C:\ora9i_d2k\j2ee\home
Step 4
Test Connection: “IO Error: Connection refused: connect”
Please advise.
Thanks
UnmeshHi,
You cannot connect to an Oracle9iAS environment directly using the connections node. You can only connect to an individual OC4J instance using this technique.
You need to use Oracle9iAS Distributed Management Configuration (DCM). See JDeveloper Help under Creating Application Server Connections -
Error while creating relational connection
HI Experts,
I used the Information Design Tool to create a relational conncetion to a SAP BW cube. Above this I created the data foundation and then the business layer (universe).
Creation of connection and universe works, but in the IDT when I click on "Test Connection" or in WebI when i want to create a report a get the following error:
[Data Federator Driver] [Server] [Connector 'testSourceConnection1400732899381'] An error occurred while trying to ping the server: java.lang.NullPointerException: while trying to invoke the method java.util.HashSet.contains(java.lang.Object) of an object loaded from field com.businessobjects.datafederator.wrappers.SapNWBI.JCOServer.JCOCallbackServer.registeredWrappers of an object loaded from local variable '<0>'.
Regards,
PRK.Sorry Praveen,
I misunderstood the question i thought you are creating OLAP connection.
which is not the case and for relational connection you have to use IDT only.
with respect to your issue, error says issues is with connectivity.
Can you try to check that BW system is accessible from your local machine or your BO server.
Regards,
Priyank Bhayani -
Error while creating OLAP connection in IDT
Hi friends,
I am facing error while creating OLAP connection in IDT (BO 4.1 sp2)
I am using sql server 2012.In the screen shots you can observe server name and user name of the Sql server
I am creating OLAP connection to connect CUBE
Check the screen shots for the error
Plz help me
Here you can see the server name and user name
While creating OLAP connection I gave these credentials
This is the error I am gettingHi..
To create connection and access the BW data, developer must have the password. and while create connection using Authentication Mode: Single Sign On, need to loin the username has pattern <SID~client/SAP userid>,
User Name: SID~client/SAP userid
Password for the SID,
Authentication as SAP.
Plese find the below link for more info: http://scn.sap.com/community/semantic-layer/blog/2014/06/19/pre-requisite-authorizations-in-sap-bw-side-before-develop-the-universe -
Error in creating a connection pool (No suitable driver)
I try to create a connection pool in a Weblogic server 7.0 with the following config:
URL:
jdbc:oracle:oci9:@db_name
Driver Classname:
oracle.jdbc.driver.OracleDriver
Properties(key=value):
user=user_name
password=user_password
dll=ocijdbc9
server=db_name
protocol=oci
my computer (windows 2000) has installed Oracle 9i client, and this connection
pool will connect to Oracle 8i server. Besides, I have config classes12.zip in
the "classpath" and ocijdbc9.dll in the "path" environment variables.
Can Oracle 9i driver connect to a Oracle 8i server? Or there is other problems?
Thanks in advance.Please try URL = jdbc:oracle:oci8:@db_name... that should be fine.
Yes, you can connect to 8i oracle database using 9i driver.
Also, make sure you have classes12.zip in classpath and ocijdbc9.dll in path.
Thanks,
Mitesh
Jacky Ho wrote:
I try to create a connection pool in a Weblogic server 7.0 with the following config:
URL:
jdbc:oracle:oci9:@db_name
Driver Classname:
oracle.jdbc.driver.OracleDriver
Properties(key=value):
user=user_name
password=user_password
dll=ocijdbc9
server=db_name
protocol=oci
my computer (windows 2000) has installed Oracle 9i client, and this connection
pool will connect to Oracle 8i server. Besides, I have config classes12.zip in
the "classpath" and ocijdbc9.dll in the "path" environment variables.
Can Oracle 9i driver connect to a Oracle 8i server? Or there is other problems?
Thanks in advance.
Maybe you are looking for
-
Reader XI, An Error Exists on this Page, Acrobat may not display
Hello, I need some help please. The small business I work for as a contract employee uses Google Doc's, and we input our information into spreadsheets on a daily basis, from our home computers. My home computer is XP Professional, and I am using Mo
-
Retrieve and read incoming emails and their attachments
Hi, Does anyone have experience of retreiving incoming emails and their attachments using PLSQL? We have a requirement to process the data contained in csv files. These files are sent as attachments with emails and the number of attachments sent with
-
Dear Apple, Because I cannot find a product suggestions page/site, I'll create a new discussion topic. I wear collared shirts to the office and the location of the volume control on your earbuds get's hung up on my collar quite frequently. This caus
-
Error ocurring while preparing to install lion on snow leopard 10.6.8
Hey, I have an intel based iMac, duo core 3.06. My snow leopard has always been unstable, starts up very slow, when i get to the blue screen it stays on there for about 15 minutes before i get to see the desktop. I bought lion through the app store,
-
CC won't let me reinstall Photoshop CS6. Please help.
I had Photoshop CS6 on my computer and CC kept offering me an upgrade. Whenever I tried to upgrade, I got an error that it was unsuccessful. This happened several times. So I decided to uninstall Ps and then reinstall it. But now that it's gone, CC w