Ora-29541 could not resolve class
Bear with me if I sound stupid. Can't help it (because I am)! I am running this code in Java and I keep getting this error: ORA-29541 AFATDS.joeycode could not be resolved.
connection=java.sql.DriverManager.getConnection(url, username, password);
stmt=connection.prepareStatement("Create or replace directory Bfile_dir as '/comp_order/joey/trig/trig/bin');
stmt.execute();
stmt.execute("Create or replace JAVA CLASS using BFILE (Bfile_dir, 'joeycode.class')");
stmt.execute("Create or replace procedure Before_update as language JAVA name 'joeycode.printmsg()';");
stmt.execute("Create or replace trigger pre_upd_trigger BEFORE UPDATE on table_name CALL Before_update");
stmt.execute("Update table_name SET column1 = 0");
Thanks for replying. I tried running the command you gave but an exception was thrown, specifally "Exception in thread "main" java.lang.NoClassDefFoundError: oracle/aurora/util/Wrapper"
Also, the reason I was trying to do it the way I was trying to do it, was because the program needs to automatically put the java code in the Oracle database at the system startup.
Similar Messages
-
Ora-12154 Could not resolve the connect Identifier specified
I am facing problem for communicating to Microsoft SQL Server through Oracle GateWay.
*1*. In installed Oracle Gateway 11.2 @D:\product\11.2.0\tg
*2. D:\product\11.2.0\tg\dg4msql\admin\initdg4msql.ora* is as:
HS_FDS_CONNECT_INFO=dba.Insignia
HS_FDS_TRACE_LEVEL=OFF
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
*3. listener.ora is as (D:\product\11.2.0\tg\NETWORK\ADMIN\tnsnames.ora)*
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = dba)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
ADR_BASE_LISTENER = D:\product\11.2.0\tg
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = dg4dmssqldb)
(PROGRAM = D:\product\11.2.0\tg\bin\dg4msql)
SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER=OFF
*4. tnsnames.ora is as (D:\product\11.2.0\tg\NETWORK\ADMIN\listener.ora)*
PROD=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.230)(PORT=1521))
(CONNECT_DATA=(SID=PROD))
msql1=
(DESCRIPTION=
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=TCP)(HOST=dba)(PORT=1521))
(CONNECT_DATA=
(SID=dg4dmssqldb) )
(HS=OK)
*5. Oracle Database Link (its working well)*
create database link apps connect to dba identified by dba using 'prod';
*6. Microsoft Sql server Database Link*
create database link msql1 connect to "sa" identified by "angal" using 'msql1' ;
When i try to select data through microsoft sql server database link its show following error;
Ora-12154 Could not resolve the connect Identifier specified
Wher i wrong......Hello,
I have not used Oracle Gateway for a long time, but did you try to rename the file D:\product\11.2.0\tg\dg4msql\admin\initdg4msql.ora into D:\product\11.2.0\tg\dg4msql\admin\initdg4dmssqldb.ora ?
initdg4msql.ora is the default name, and should be changed if you do not use dg4msql as gateway SID:
http://download.oracle.com/docs/cd/E11882_01/gateways.112/e12013/configsql.htm#autoId2
Hope it will help.
Regards,
Sylvie -
ORA-12154 could not resolve the connect indentifier specified
[http://www.freeimagehosting.net/image.php?793d240bb3.jpg]
when i try to install oracle 10g i find this problem i wish you help meuser473080 wrote:
[http://www.freeimagehosting.net/image.php?793d240bb3.jpg]
when i try to install oracle 10g i find this problem i wish you help meIn the future please work from a command line and use copy and paste to put commands and results in your posts. Many people's corporate nets block access to blog sites.
I have recently blogged extensively on this very subject. See edstevensdba.wordpress.com. I can't post a link to the exact article, because my corporate website blocks access to blog sites. I have also, many many times posted on this error in this forum, which a cursory search would have turned up. But once again, back by popular request:
=================================
ORA-12154: TNS:could not resolve the connect identifier specified
This error means one thing, and one thing only. The client could not find the specified entry in the tnsnames.ora file being used.
As a follow-on to that statement, remember that when you use a dblink, the database in which the link is defined is acting as a client to the database that is the target of the link. So in this case, the tnsnames.ora file on the host of your source should have an entry for your target db, as defined in the db_link.
And for the umpteenth time ... this error has <b><i><u>NOTHING</u></i></b> to do with the status of a listener. The connection request never got far enough to reach a listener. If anyone tells you to check a listener in response to ora-12154, they are not paying attention, or do not understand how TNS works. This error is the equivalent of not being able to place a telephone call because you don't know the number of the party you want to reach. You wouldn't debug that situation by going to the other guy's house and testing his telephone, or by going to the phone company and testing the switchboard. And you don't debug a ORA-12154 by checking the listener. If I had a top ten list of "Incredibly Simple Concepts (tm)" that should be burned into the brain of everyone who claims to be an Oracle DBA, it would include "ORA-12154 Has Nothing To Do With The Listener".
=================================
A couple of important points.
First, the listener is a server side only process. It's entire purpose in life is to receive requests for connections to databases and set up those connections. Once the connection is established, the listener is out of the picture. It creates the connection. It doesn't sustain the connection. One listener, with the default name of LISTENER, running from one oracle home, listening on a single port, will serve multiple database instances of multiple versions running from multiple homes. It is an unnecessary complexity to try to have multiple listeners or to name the listener as if it belongs to a particular database. That would be like the telephone company building a separate switchboard for each customer.
Additional notes on the listener: One listener is capable of listening on multiple ports. But please notice that it is the listener using these ports, not the database instance. You can't bind a specific listener port to a specific db instance. Similarly, one listener is capable of listnening on multiple IP addresses (in the case of a server with multiple NICs) But just like the port, you can't bind a specific ip address to a specific db instance.
Second, the tnsnames.ora file is a client side issue. It's purpose is for address resolution - the tns equivalent of the 'hosts' file further down the network stack. The only reason it exists on a host machine is because that machine can also run client processes.
Assume you have the following in your tnsnames.ora:
larry =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = myhost)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = curley)
)Now, when you issue a connect, say like this:
$> sqlplus scott/tiger@larrytns will look in your tnsnames.ora for an entry called 'larry'. Finding it, tns sends a request through the normal network stack to (PORT = 1521) on (HOST = myhost) using (PROTOCOL = TCP), asking for a connection to (SERVICE_NAME = curley).
Where is (HOST = myhost) on the network? When the request gets passed from tns to the next layer in the network stack, the name 'myhost' will get resolved to an IP address, either via a local 'hosts' file, via DNS, or possibly other less used mechanisms. You can also hard-code the ip address (HOST = 123.456.789.101) in the tnsnames.ora.
Next, the standard networking process delivers the message to port 1521 on myhost. Hopefully, there is a listener on myhost configured to listen on port 1521, and that listener knows about SERVICE_NAME = curley. If so, the listener will spawn a server process to act as the intermediary between your client and the database instance. Communication to the server process will be on a randomly selected available port. At that point the listener is out of the process and continues to user port 1521 to await other connection requests.
What can go wrong?
First, there may not be an entry for 'larry' in your tnsnames. In that case you get "ORA-12154: TNS:could not resolve the connect identifier specified" No need to go looking for a problem on the host, with the listener, etc. If you can't place a telephone call because you don't know the number (can't find your telephone directory (tnsnames.ora) or can't find the party you are looking for listed in it (no entry for larry)) you don't look for problems at the telephone switchboard.
Maybe the entry for larry was found, but myhost couldn't be resolved to an IP address (say there was no entry for myhost in the local hosts file). This will result in "ORA-12545: Connect failed because target host or object does not exist"
Maybe there was an entry for myserver in the local hosts file, but it specified a bad IP address. This will result in "ORA-12545: Connect failed because target host or object does not exist"
Maybe the IP was good, but there is no listener running: "ORA-12541: TNS:no listener"
Maybe the IP was good, there is a listener at myhost, but it is listening on a different port. "ORA-12560: TNS:protocol adapter error"
Maybe the IP was good, there is a listener at myhost, it is listening on the specified port, but doesn't know about SERVICE_NAME = curley. "ORA-12514: TNS:listener does not currently know of service requested in connect descriptor"
Third: If the client is on the same machine as the db instance, it is possible to connect without referencing tnsnames and without going through the listener.
Now, when you issue a connect, say like this:
$> sqlplus scott/tigertns will attempt to establish an IPC connection to the db instance. How does it know the name of the instance? It uses the current value of the enviornment variable ORACLE_SID. So...
$> export ORACLE_SID=fred
$> sqlplus scott/tigerIt will attempt to connect to the instance known as "fred". If there is no such instance, it will, of course, fail. Also, if there is no value set for ORACLE_SID, the connect will fail.
check executing instances to get the SID
[oracle@vmlnx01 ~]$ ps -ef|grep pmon|grep -v grep
oracle 4236 1 0 10:30 ? 00:00:00 ora_pmon_vlnxora1set ORACLE_SID appropriately, and connect
[oracle@vmlnx01 ~]$ export ORACLE_SID='vlnxora1
[oracle@vmlnx01 ~]$ sqlplus scott/tiger
SQL*Plus: Release 10.2.0.4.0 - Production on Wed Sep 22 10:42:37 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing optionsNow set ORACLE_SID to a bogus value, and try to connect
SQL> exit
[oracle@vmlnx01 ~]$ export ORACLE_SID=FUBAR
[oracle@vmlnx01 ~]$ sqlplus scott/tiger
SQL*Plus: Release 10.2.0.4.0 - Production on Wed Sep 22 10:42:57 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
Enter user-name: Now set ORACLE_SID to null, and try to connect
[oracle@vmlnx01 ~]$ export ORACLE_SID=
[oracle@vmlnx01 ~]$ sqlplus /scott/tiger
SQL*Plus: Release 10.2.0.4.0 - Production on Wed Sep 22 10:43:24 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
ERROR:
ORA-12162: TNS:net service name is incorrectly specifiedOk, that is how we get from the client connection request to the listener. What about the listener's part of all this?
The listener is very simple. It's job is to listen for connection requests and make the connection (server process) between the client and the database instance. Once that connection is made, the listener is out of the picture. If you were to kill the listener, all existing connections would continue. The listener is configured with the listener.ora file, but if that file doesn't exist, the listener is quite capable of starting up with all default values. One common mistake with the listner configuration is to specify "HOST=localhost" or "HOST=127.0.01". This is a NONROUTABLE ip address. LOCALHOST and ip address 127.0.0.1 always mean "this machine on which I am sitting". So, all computers are known as "localhost" or "127.0.0.1". If you specify this address, the listener will only be capable of receiving requests from the machine on which it is running. If you specified that address in your tnsnames file - on a remote client machine - the request would be routed to the machine on which the requesting client resides. Probably not what you want.
===================================== -
Could not resolve service name when installing Mobile Server
Hi,
when installing mobile server I am prompted for the SYSTEM pwd and then get "ORA-12154: Could not resolve service name". I install lite in a different home (LITE_HOME) than the database. Database's TNSNAMES.ORA looks like (I added the webtogo.world entry myself)
===================== TNSNAMES.ORA =================
WEBTOGO.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)
(Host = localhost)
(Port = 1521)
(CONNECT_DATA = (lite.oracle)))
LITE.PL.ORACLE.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = lite.oracle)
=======================================
Then installing lite I enter localhost/1521/lite.oracle
I can connect from sqlplus:
sqlplus system/manager@lite
Java version is 1.3.1_08, which I think is correct.
Does anyone have any ideas? Thanks in advance.
Best regards,
PawelHi,
When you install Oracle Lite the valid TNSNAMES.ora becomes the one that is coming with Oracle Lite.
From now on when you must create a tns name you must create it in the Oracle Lite's tnsnames.ora file unless you specify which tnsnames file you will use in the registry.
You can find tnsnams.ora file in the below path:
<OracleLite_HOME>\network\admin\
Regards,
Bogac OZGEN -
Toad ORA-12154: TNS:could not resolve the connect identifier specified
I'm installing oracle clients and tools on a new Windows 7 machine issued to me by my company.
I installed a 64 bit 10.2.0.3 oracle client, but found that 64 bit installations don't work with TOAD. So I installed a 32 bit 10.2.0.1 oracle client. I also set up my TNS names files in the network/admin directory of both installations, set up the hosts files, and ensured that the registry information is accurate. I have no ORACLE_HOME environment variable because when I installed the 2nd installation of Oracle it said that I shouldn't have one since I have multiple versions of oracle and it erased it.
I am able to connect and use SQL Plus and SQL Developer with both installations of Oracle, but I'm not able to connect with TOAD. TOAD finds the 32 bit installation and all of its registry information looks correct and TOAD says "The Oracle home is valid". TOAD also loads my TNS file and all associated IPs and everything looks good when I look at them in the the TNS Editor. I am also running TOAD as administrator in order to avoid "Can't initialize OCI. Error -1" errors.
Yet, whenever I try to connect to any database, I get the following error:
"ORA-12154: TNS:could not resolve the connect identifier specified" and then the database I am using
Is there anything else I need to setup because I have multiple installations of Oracle? Or anything else I need to setup running on a 64 bit windows machine with 32 bit installations of oracle and toad?
Thanks for any help you can give.And in case you want to know my registry information:
64 bit installation:
Key Name: HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_OraClient10g_home2
Class Name: Application Global Data
Last Write Time: 10/5/2010 - 11:36 AM
Value 0
Name: ORACLE_HOME
Type: REG_SZ
Data: C:\oracle\product\10.2.0\client_2
Value 1
Name: ORACLE_HOME_NAME
Type: REG_SZ
Data: OraClient10g_home2
Value 2
Name: ORACLE_GROUP_NAME
Type: REG_SZ
Data: Oracle - OraClient10g_home2
Value 3
Name: ORACLE_BUNDLE_NAME
Type: REG_SZ
Data: Enterprise
Value 4
Name: NLS_LANG
Type: REG_SZ
Data:
Value 5
Name: OLEDB
Type: REG_SZ
Data: C:\oracle\product\10.2.0\client_2\oledb\mesg
Value 6
Name: StmtCacheSize
Type: REG_SZ
Data: 0
Value 7
Name: SQLPATH
Type: REG_SZ
Data: C:\oracle\product\10.2.0\client_2\dbs
Value 8
Name: ORACLE_HOME_KEY
Type: REG_SZ
Data: SOFTWARE\ORACLE\KEY_OraClient10g_home2
32 bit installation:
Key Name: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ORACLE\KEY_OraClient10g_home1
Class Name: Application Global Data
Last Write Time: 10/6/2010 - 12:42 PM
Value 0
Name: ORACLE_HOME
Type: REG_SZ
Data: C:\oracle\product\10.2.0\client_3
Value 1
Name: ORACLE_HOME_NAME
Type: REG_SZ
Data: OraClient10g_home1
Value 2
Name: ORACLE_GROUP_NAME
Type: REG_SZ
Data: Oracle - OraClient10g_home1
Value 3
Name: ORACLE_BUNDLE_NAME
Type: REG_SZ
Data: Enterprise
Value 4
Name: NLS_LANG
Type: REG_SZ
Data: AMERICAN_AMERICA.WE8MSWIN1252
Value 5
Name: SQLPATH
Type: REG_SZ
Data: C:\oracle\product\10.2.0\client_3\dbs
Value 6
Name: ORACLE_HOME_KEY
Type: REG_SZ
Data: SOFTWARE\ORACLE\KEY_OraClient10g_home1
And my environment variables:
TNS_ADMIN: C:\Oracle\product\10.2.0\client_3\NETWORK\ADMIN
PATH: "C:\oracle\product\10.2.0\client_3\bin;C:\oracle\p roduct\10.2.0\client_2\bin;%SystemRoot%\system32;% SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT %\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin"
The string "C:\oracle\product\10.2.0\client_3\bin" is the bin directory for my 32 bit installation.
The string "C:\oracle\product\10.2.0\client_2\bin" is the bin directory for my 64 bit installation. -
DNS Set Up system throw as ORA-12154; TNS :could not resolve the connect id
Hi,
While i'm creating DNS set up system throws below message
unable to connect
SQLState=08004
DNS Set Up for instantclient(win32-10.2.0.4) system throw as ORA-12154; TNS :could not resolve the connect identified specified.
operationg system:xp
dir path:C:\Oracle\instantclient10_2
TNSNAMES.ORA(C:\Oracle\instantclient10_2\NetWork\ADMIN) Contants
YourTNSName =sankar
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST =localhost)(PORT =1521))
(CONNECT_DATA =
(SID =sankar)
(SERVER = DEDICATED)
dir contains:
sqresus.dll,
sqresja.dll
sqoras32.dll
sqora32.dll
oraociei10.dll
oraocci10.dll
orannzsbb10.dll
ojdbc14.jar
ocijdbc10.dll
ociw32.dll
oci.dll
classes12.jaruser7197586 wrote:
Hi
I have been created one DBLink it's created but when i am trying to access the data through the link it's raise error as
"ORA-12154: TNS:could not resolve the connect identifier specified"
CREATE
PUBLIC DATABASE LINK
Vrd_tcplink
CONNECT TO
"SAPVRD"
IDENTIFIED BY
"manager123"
USING
'VRD_TCP.WORLD'
created this above dblink
Kindly Suggest to wau out.
Regards,
Sachin
When using a dblink, the database with the link is acting as a client to the remote database ... exactly like sqlplus running on the db server.
read: http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/ ora-12154tns-03505 -
Error: "Could not resolve [public class] to a component implementation
Here's another clueless newbie question! :-(
I define a public class "DynamicTextArea" at the top of the file, and get the compiler error message "Could not resolve <DynamicTextArea> to a component implementation" at the bottom of the same file.
Clearly, I don't understand something very basic.
(The code between the commenrted asterisks was originally in a separate package file, which I couldn't get either mxmlc or FlexBuilder to find, so rather than fight that issue now, I moved it into the same file.)
Here's the file:
<?xml version="1.0" encoding="utf-8" ?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
>
<!--****************************************************************-->
<mx:Script>
<![CDATA[
import flash.events.Event;
import mx.controls.TextArea;
public class DynamicTextArea extends TextArea{
public function DynamicTextArea(){
super();
super.horizontalScrollPolicy = "off";
super.verticalScrollPolicy = "off";
this.addEventListener(Event.CHANGE, adjustHeightHandler);
private function adjustHeightHandler(event:Event):void{
trace("textField.getLineMetrics(0).height: " + textField.getLineMetrics(0).height);
if(height <= textField.textHeight + textField.getLineMetrics(0).height){
height = textField.textHeight;
validateNow();
override public function set text(val:String):void{
textField.text = val;
validateNow();
height = textField.textHeight;
validateNow();
override public function set htmlText(val:String):void{
textField.htmlText = val;
validateNow();
height = textField.textHeight;
validateNow();
override public function set height(value:Number):void{
if(textField == null){
if(height <= value){
super.height = value;
}else{
var currentHeight:uint = textField.textHeight + textField.getLineMetrics(0).height;
if (currentHeight<= super.maxHeight){
if(textField.textHeight != textField.getLineMetrics(0).height){
super.height = currentHeight;
}else{
super.height = super.maxHeight;
override public function get text():String{
return textField.text;
override public function get htmlText():String{
return textField.htmlText;
override public function set maxHeight(value:Number):void{
super.maxHeight = value;
]]>
</mx:Script>
<!--****************************************************************-->
<mx:Script>
<![CDATA[
import mx.controls.Alert;
private var str:String = "This text will be long enough to trigger " +
"the TextArea to increase its height.";
private var htmlStr:String = "This <b>text</b> will be <font color='#00FF00'>long enough</font> to trigger " +
"the TextArea to increase its height.";
private function setLargeText():void{
txt1.text = str;
txt2.text = str;
txt3.text = str;
txt4.text = str;
txt5.htmlText = htmlStr;
txt6.htmlText = htmlStr;
txt7.htmlText = htmlStr;
txt8.htmlText = htmlStr;
]]>
</mx:Script>
<DynamicTextArea id="txt1" width="300" height="14"/>
<DynamicTextArea id="txt2" width="300" height="20"/>
<DynamicTextArea id="txt3" width="300" height="28"/>
<DynamicTextArea id="txt4" width="300" height="50"/>
<DynamicTextArea id="txt5" width="300" height="14"/>
<DynamicTextArea id="txt6" width="300" height="20"/>
<DynamicTextArea id="txt7" width="300" height="28"/>
<DynamicTextArea id="txt8" width="300" height="50"/>
<mx:Button label="Set Large Text" click="setLargeText();"/>
</mx:Application>
Thanks for any insight you can provide!
HarveyGordon:
As you've noted, there were multiple misunderstandings.
Some are due to references in the language which are different from uses in pre-existing languages.
Take "name spaces". They look like URLs but they're not. One of the first errors I made when starting Flex was to try to browse to http://www.adobe.com/2006/mxml. I figured that it would have some description of the language. But it didn't. In spite of LOOKING like a URL, it doesn't point to anything; it's really just an arbitrary magic incantation, like "Open Sesame".
But, then when I wanted to use my OWN namespace, I find that it's NOT arbitrary, and does have to point to something, but it's still not a URL. The "AHA" moment was when Michael told me that "*" means "look in this directory for a file with the name later named in an import statement, but not named here". And if the file was in subfolder "X" I'd have to use "X.*", while if it were a URL I'd use slash instead of dot, but never an asterisk.
When the language syntax is so contrary to the expectations of people coming from a declarative language or web programming background, I think it is important to explicitly address the differences and disabuse them of their preconceptions. I think the same should apply to the ways in which ActionScript differs from ECMAScript.
Another problem adding to my confusion is the habit of naming variables with the names of keywords but with capitalization changes. Not only does that set readers up for subtle "gotchas", but makes it unclear which names are truly arbitrary, and which are required by the compiler.
It might be a good idea to have a convention of an identifiable format for user variables. Many authors use names like myButton for that purpose.
It would also be helpful if printed text could simulate the syntax coloring of the better editors, or at least have more in-source comments saying exactly what each line does. (Or both)
Another aid to understanding would be to provide a reference to the alternative (MXML or AS) way of doing anything, whenever you demonstrate one of the ways.
I find that the emphasis on using FlexBuilder distracts from a sense of what is really going on behind the scenes. E,g.: If FlexBuilder automatically sets up the folder structure, I don't learn to do it myself. I like to work at the code level, so when something goes wrong I don't have to worry about what level it went wrong at.
Also, not everyone is willing to drop $600 or $250 BEFORE they've learned whether they even like Flex. Your tutorials are, by definition, addressed to newcomers who may well not yet have committed to the expense of FlexBuilder. So more emphasis on using mxmlc would be nice. It would also be helpful to discuss how to use local servers, like Tomcat, during the development stage.
Thanks for asking my opinion. I'm afraid that my 40 years of programming experience may make it harder for me to adapt to this new style of programming than it would be for a kid with a tabula rasa. But, it looks like it'll be fun once I get over the hump!
Harvey -
ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect
Hi Friends,
I have created 10g database for catalog.
I kept the tns entry in some other server. Tnsping is working fine.. I can see the result.
mexn01:$ tnsping rman09na
TNS Ping Utility for HPUX: Version 9.2.0.5.0 - Production on 28-APR-2008 19:29:07
Copyright (c) 1997 Oracle Corporation. All rights reserved.
Used parameter files:
/apps/app/oracle/local/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = torora60)(PORT = 1522))) (CONNECT_DATA = (SERVICE_NAME = rman09na)))
OK (0 msec)
When I am trying to connect to the database I am getting following error..
mexn01:$ sqlplus ismdba/xxxxx@rman09na
SQL*Plus: Release 9.2.0.5.0 - Production on Mon Apr 28 19:29:22 2008
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
ERROR:
ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect
descriptor
Please help me..
Thanks in advance.Try on the server where it doesn't work:
sqlplus ismdba/xxxxx@"(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = torora60)(PORT = 1522))) (CONNECT_DATA = (SERVICE_NAME = rman09na)))"
or
tnsping "(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = torora60)(PORT = 1522))) (CONNECT_DATA = (SERVICE_NAME = rman09na)))"
(note the double quotes)
If that works then your tnsnames.ora is incorrect on that server. -
Ora-12154:TNS:Could not resolve the connect identifier specified
Helo
I face this error when i tried to connect to the database.
i have been installed 11g database on machine with database name 'hrall'
But when i tried to connect to the database it's shows me error "ora-12154:TNS:Could not resolve the connect identifier specified"
when i put the old database entry an that machine and try ti connect it's connect Successfully.
Kindly Suggest
Regards,
SachinHi Error not solved yet
i am giving you my system details as follow -
OS Name : Microsoft(R) Windows(R) Server 2003 Standard x64 Edition
System Type: x64-based PC
My tnsentry also right
posted as follow -
HRALL.voltasworld.com =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ps-win-hrall.voltasworld.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = hrall)
listener.ora file
# listener.ora Network Configuration File: F:\app\dbadmin\product\11.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = F:\app\dbadmin\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:F:\app\dbadmin\product\11.2.0\dbhome_1\bin\oraclr11.dll")
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = ps-win-hrall.voltasworld.com)(PORT = 1521))
ADR_BASE_LISTENER = F:\app\dbadmin
Kindly Suggest
Regards
Sachin -
ORA-12154: TNS:could not resolve the connect identifier specified [10g XE]
Greetings
There are many topics on this issue over the internet but None of them addresses this issue properly, so I couldn't find a solution to the problem.
I installed: Oracle Database 10g Express Edition
After the installation was done, I opened SQL Command Line
and I used the command "connect" to login
I enter the username
Then I entered the password
After a couple of seconds I got the following ERROR message:
ORA-12154: TNS:could not resolve the connect identifier specified
Screenshot of the error:
http://i35.tinypic.com/14o26g7.png
I installed this version of Oracle on both Windows XP 32 bit and Windows 7 32 bit and I get the same error message when it tries to connect.
Why doesn't Oracle work right after the installation?
Are there any further steps that need to be done in order to make this work? If so I would really appreciate any step by step help, I've been stuck trying to find a solution for days.
Edited by: user10192105 on Aug 22, 2010 7:34 PM>
I wento to CMD, then I entered sqlplus / as sysdba and that just opened the SQL*Plus program in CMD (SQL>)
But nevertheless I still need to login with a user name and password which and I tried and I got the same error message.
>
We're making progress, you'll be logging in soon....
Get into SQL*Plus with the command I gave you, now type this:
alter user <theusernameyouwant> identified by abc123;followed by (still in SQL*Plus):
connectafter you type "connect", SQL*Plus will ask you for a user name and password. Use the same user name and password you used in the alter command.
HTH,
John. -
Hi,
I am getting this error message in my ASP.Net apps (namespace Oracle.DataAccess.Client) and any app that tries to use the Oracle Provider for OLE DB.
Error:
ORA-12154: TNS:could not resolve the connect identifier specified
Here is what I do know:
- My ORACLE_HOME is set to C:\oracle\product\11.1.0\client_1\
- My path has C:\oracle\product\11.1.0\client_1\network\admin;C:\oracle\product\11.1.0\client_1\bin;
- I installed Oracle Client 11g, previously 10g was working but one of the devs wanted to upgrade
- I can connect using sqlplus user/pass@tnsname
- I can test tns entries successfully in Net Manager
Here is what I don't know:
- When using OLE connections, why does Oracle Provider for OLE DB not pick up on the environment variables - sql plus seems to, that's why it works.
- In ASP.Net, why does the connection object from Oracle.DataAccess.Client not pick up the correct environment variables?
- How do the Oracle drivers pick up the location of the TNS names?
Thanks,
Michael
Edited by: user2750352 on 04-May-2009 07:51Hi,
What "environment variables" are you referring to that you have set? You shouldnt have to set any, unless you're talking about TNS_ADMIN just to avoid having to configure multiple TNSNames.ora's if you have multiple homes.
Your PATH doesnt need to include OH\network\admin, but thats not hurting anything. PATH is for dll loading, not for finding config files.
Do you still have 10g installed? When you connect using sqlplus user/pass@tnsname, are you using 11g sqlplus? Or is that coming from the 10g client? Multiple homes arent aware of each other, so if you have a 10g home and an 11g home, you'd have to configure tnsnames.ora for both (or use tns_admin).
As far as I know, the client software picks up tnsnames.ora by checking:
1) the local working directory
2) the tns_admin directory
3) the network\admin directory of the client home being used.
Hope it helps,
Greg -
ORA-12154: TNS:could not resolve service name
Hi Guru's
i applied Maintainacepack 3480000 patch on my application for upgrading 11.5.7 to11.5.10.2, after completion of patch, I run the autoconfig it has given bellow error, please anybody can help me, i need to finish my task immediately, please provide me the solution.
autoConfig Profile Phase
Running Profile Process 1 of 1 for CLN_TOP
Executing script in InstantiateFile:
/sgmtemp/prodcomn/admin/install/MSBEP004_dcpsr006osm/clnadmprf.sh
script returned:
clnadmprf.sh started at Sun Feb 17 06:24:13 WST 2008
The environment settings are as follows ...
ORACLE_HOME : /sgmtemp/prodora/8.0.6
ORACLE_SID :
TWO_TASK : msbep004
PATH : /sgmtemp/prodora/iAS/Apache/perl/bin:/sgmtemp/prodora/8.0.6/bin:/sgmtemp/prodappl/fnd/11.5.0/bin:/sgmtemp/prodappl/ad/11.5.0/bin:/sgmtemp/prodcomn/util/jre/1.1.8/bin:/sgmtemp/prodcomn/util/unzip/unzip::/sgmtemp/prodora/8.0.6/bin:/usr/bin:/usr/ccs/bin:/usr/sbin:/sgmtemp/prodora/iAS/Apache/perl/bin:/sgmtemp/prodora/iAS/Apache/perl/bin:/sgmtemp/prodora/8.0.6/bin:/sgmtemp/prodcomn/util/jre/1.1.8/bin:/sgmtemp/prodcomn/util/unzip/unzip:/sgmtemp/prodora/8.0.6/bin:/usr/bin:/usr/ccs/bin:/usr/sbin:/usr/java14/jre/bin:/usr/java14/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/sgmtemp/prodappl/bin:/usr/bin/X11:/sbin:/usr/lpp/pd/bin:.
LD_LIBRARY_PATH : /sgmtemp/prodora/8.0.6/network/jre11/lib/aix/native_threads:/sgmtemp/prodappl/cz/11.5.0/bin:/sgmtemp/prodora/8.0.6/lib:/usr/dt/lib:/usr/openwin/lib
Executable : /sgmtemp/prodora/8.0.6/bin/sqlplus
SQL*Plus: Release 8.0.6.0.0 - Production on Sun Feb 17 06:24:13 2008
(c) Copyright 1999 Oracle Corporation. All rights reserved.
ERROR:
ORA-12154: TNS:could not resolve service name
clnadmprf.sh exiting with status 1
ERRORCODE = 1 ERRORCODE_END
.end std out.
thanksPlease Apply "Patch 5985992 - TXK AUTOCONFIG ROLLUP PATCH Q (JUL/AUG 2007)", run AutoConfig, and check then.
-
Fundamental Problem: ORA-12154: TNS:could not resolve service name
Hello,
I am faced with a fundamental problem:
ORA-12154: TNS:could not resolve service name
I can say with a high level of confidence that the TNSNAMES.ora configuration file is not the problem. My peer is using the exact same file with no issues. I am using the TOAD database utility to connect to the db host. Also, I have ORACLE_HOME defined and the file is located in /network/ADMIN.
Any ideas?Hello,
Make sure your toad looking into right tnsnames.ora; also try this from command line after adding following entry to your tnsnames.ora.
sqlplus username/password@ECDEV
ECDEV =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)
(HOST = rscdd01) --> you can try ipaddress of your server name as well
(PORT = 1521)
(SDU = 8192)
(CONNECT_DATA =
(SERVICE_NAME =ECDEV)
(INSTANCE_NAME=ECDEV)
)Edited by: OrionNet on Dec 23, 2008 2:22 PM -
MSDAORA,IIS,ORA-12154: TNS:could not resolve service name
Hi All,
I have a Web Service that coded in VS2008, using ORACLE DB(9i).
At a time the application working fine and I can access and do everything with database.
Some other time database server is down for scheduled maintenance. If I try to run the application at this point of time it will raise err "ORA-12154: TNS:could not resolve service name".
When i reset iis it start to work fine for a while.Then same problem occurs again.
My connection string is connectionString="provider=MSDAORA.1;data source=***;user id=***;password=***;"
is there any solution?
i tried that;
If theire is multiple copies of OCIW32.dll you have to make sure that there is only one copy of OCIW32.dll which should be in /Bin folder of the oracle home folder.
Add the IUSR_machine name account and the IWAM_machine name account to the Oracle home folder. Give both accounts full control.
Create empty file tnsnames.ora in same directory as aspnet_wp.exe,Hi,
The issue doesnt make much sense on the surface at least. 12154 means the client couldnt figure out what you were referring to with your Data Source= entry. If the database was taken down, I'd expect an "oracle not available" or some other sort of error, as the client should have still be able to resolve the entry at least, even if the database wasnt up at the time.
What do you mean by "When i reset iis it start to work fine for a while.Then same problem occurs again."? The same problem meaning you get 12154 when you take the database down? Or you get 12154 without a db restart?
Are you using TNSNames.ora for client naming resolution, or something else (ldap, for example)?
Greg -
ORA -ERR :Tns could not resolve service name
Hi,
I am tring to get into sql plus. As the oracle is pre installed and as donot know the system password, I am tring to login as Scott/tiger and host string as 'ORCL'.
I am getting the following error.
ORA-12154 :
Tns could not resolve service name
Is there any way to find the Host string name through any of the installation files.
Please suggest.
BadrinathHi,
Open the tns file ( available at oracle_home/network/admin/tnsnames.ora). I do not know what your oracle_home name is. Usually it is oracle/ora81/ under c: or D: or where ever you installed Oracle. Go thru the file. You will find the service name. Use that while logging. If you want to login to ORCL, it has to be there in tns files name otherwise Oracle cvan not resolve the name.
Good luck
Krishna Priya
null
Maybe you are looking for
-
Report for Actual PO Qty and Received Qty
Hi, Is there any standard report which have the information of PO details like how much quantity PO have and how much received against the total PO Quantity. Regards..
-
I cannot eject my new ipod classic after sync with i-tunes on my pc due, it states, to open files being used by another application. What does this mean? How can I get my ipod to eject?
-
How to censor only a portion of a clip to hide a logo?
Hi all, I have a clip which is an animation, but it has a company logo in it pretty much throughout. I'd like to either superimpose my own photo over it, or black it out completely. How can i do this on FCE? I'm using version 4.0.1. The logo is fixed
-
Sql query not qualifying date- what did I do wrong?
I am not getting the date request from this query, it produces all records in table- not my date request....What am I doing wrong. select * from table where (dep_apt in ('123','T123','456','T456')) or (dest_apt in ('123','T123','456','T456')) and fpd
-
Problem related to MIR7?
Hi All, I want to put check for Amount , so that no body could change it. please tell me if there is any user exit or any type of customization through which I can get the desired result.