How to bypass net-service-name
When I login to database using SqlPlus with dba unix account,I go the following error message.
command>sqlplus username/passwd
ERROR:
ORA-01034: ORACLE not available
It is Ok for the following command.
command>sqlplus username/passwd@service-name
But If I login with "oracle"(a unix account),
command>sqlplus username/passwd
it is OK too.
The primary group of "dba unix account" and "oracle" is same.
How can I login database bypass net service name??
Thanks!!
¿Ehm?
You'll need have to have a connection first, before you can query a table/view.
@ OP
i want connect to SQLDEVELPOERSounds like some 'Poor SQL devil' is driving you nuts...
Who's your DBA? ( Apparently not Sybrand ;) )
Don't get me wrong:
It's good to be 'OraHungry', but always try to understand what you 'eat' ;)
Read the docs, as Sybrand already asked you, you'll learn a lot for free.
It will give you information Google will not give you, unless you're willing to check out 1000's of links in vain first.
Similar Messages
-
How to bypass net service name when logining database
When I login to database using SqlPlus with dba unix account,I go the following error message.
command>sqlplus username/passwd
ERROR:
ORA-01034: ORACLE not available
It is Ok for the following command.
command>sqlplus username/passwd@service-name
But If I login with "oracle"(a unix account),
command>sqlplus username/passwd
it is OK too.
The primary group of "dba unix account" and "oracle" is same.
How can I login database
bypass net service name??
Thanks!!Let's assume your service name was "orcl.oracle.com" and now is "orcl", you can do (as sysdba) :
SQL> alter system set service_names='orcl, orcl.oracle.com'; -- (or just orcl.oracle.com)
If you use initSID.ora to start the DB, then you have to change it there, and bounce the DB. -
Hit 500 Internal Error when Creating Net Service Name in Directory via EM
Dear All
When I click 'LISTENER_<Full_hostname>' in the General section of Page Database and then click 'Net Services Administration' in the Related Links section of Page Listener through Oracle Enterprise Manger 10g Database Control in order to create Net Service Name in Oracle Internet Directory, I got following 500 Internal Error
java.lang.RuntimeException: Expecting Vector, Enumeration or array, found oracle.cabo.ui.data.ListDataObjectList
at oracle.sysman.emSDK.jsp.Utils.getEnumeration(Utils.java:81)
at oracle.sysman.emSDK.jsp.ChoiceBean.render(ChoiceBean.java:58)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.browser.MultipleSelectionRenderer$SelectorChildrenRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.browser.MultipleSelectionRenderer.renderTableControlBar(Unknown Source)
at oracle.cabo.ui.laf.browser.SingleSelectionRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderNamedChild(Unknown Source)
at oracle.cabo.ui.laf.browser.TableRenderer.renderControlBar(Unknown Source)
at oracle.cabo.ui.laf.xhtml.TableRenderer._renderControlBar(Unknown Source)
at oracle.cabo.ui.laf.xhtml.TableRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.sysman.emSDK.jsp.TableBean.render(TableBean.java:690)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.browser.HeaderRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.xhtml.BodyRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.xhtml.BorderLayoutRenderer.renderIndexedChildren(Unknown Source)
at oracle.cabo.ui.laf.xhtml.BorderLayoutRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.browser.PageLayoutRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.xhtml.DocumentRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.xhtml.DocumentRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.jsps.tags.BaseUINodeTag.__handleFinishedNode(Unknown Source)
at oracle.cabo.ui.jsps.tags.BaseUINodeTag.doEndTag(Unknown Source)
at net.netAdmin._jspService(_netAdmin.java:699)
[net/netAdmin.jsp]
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:347)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
at oracle.sysman.emSDK.svlt.PageHandler.render(PageHandler.java:773)
at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:396)
at oracle.sysman.db.net.NetControllerResolver.handleRequest(NetControllerResolver.java:169)
at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:688)
at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:291)
at oracle.sysman.eml.app.Console.doGet(Console.java:285)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(EMRedirectFilter.java:101)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
at oracle.sysman.db.adm.inst.HandleRepDownFilter.doFilter(HandleRepDownFilter.java:133)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:269)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
OS version is: Windows 2003 Enterprise Edition Release 2 SP2, which is msdn version built on VM EXSi 3.0
Platform: x86 (VM EXSi 3.0)
OIM Infrastructure: OIM_OIF 10.1.4.0.1
Please let me know how can I fix this problem and if you need anything else please let me know
Thanks in advance
Patrickuser8149666 wrote:
Dear All
When I click 'LISTENER_<Full_hostname>' in the General section of Page Database and then click 'Net Services Administration' in the Related Links section of Page Listener through Oracle Enterprise Manger 10g Database Control in order to create Net Service Name in Oracle Internet Directory, I got following 500 Internal ErrorWhat do you mean by "in order to create Net Service Name in Oracle Internet Directory"? -
Tns error ora-12162 net service name is incorrectly specified
Hello gurus ,
I am trying to connect database using telnet from windows machine ,
after login os , username ,password
i got $ prompt , after that i have given sqlplus command , then I have enter username,pwd correctly ,but I am unable to connect its giving error " Net service name is incorrectly specified ,
I have checked my tnsnames.ora file at the database system , i find all the entries are correct
plzzz can anybody help me .. how to connect database via telnetuser10608990 wrote:
Hello gurus ,
I am trying to connect database using telnet from windows machine ,
after login os , username ,password
i got $ prompt , after that i have given sqlplus command , then I have enter username,pwd correctly ,but I am unable to connect its giving error " Net service name is incorrectly specified ,
I have checked my tnsnames.ora file at the database system , i find all the entries are correct
plzzz can anybody help me .. how to connect database via telnet"I have enter username,pwd correctly "
"i find all the entries are correct "
And yet, it doesn't work!
=============
"I have checked my tnsnames.ora file at the database system "
when you start sqlplus ... is that on the same machine that is running the db, or some other machine? Remember .. (and I'm really feeling like a broken record on this one) <b><i>TNSNAMES.ORA IS USED BY THE <U>CLIENT</U> PROCESS.</i></b>
Show us the contents of your listener.ora file -- from the server machine
Show us the contents of your tnsnames.ora and sqlnet.ora files -- from the client machine. -
Netca Local Net Service Name Configuration
Hello,
I'm searching for a while now on how to configure a local net service name configuration silently with netca.rsp.
I can't found any Template according to that kind of configuration.
So I need to add a "Local Net Service Name configuration" into the Oracle Net Configuration Assistant.
I just have to configure the service name, TCP, hostname, username and password but I don't know how to setup the response file.
Here is the generic Template of netca.rsp
## Copyright(c) 1998, 2011 Oracle Corporation. All rights reserved. ##
## Specify values for the variables listed below to customize your ##
## installation. ##
## Each variable is associated with a comment. The comment ##
## identifies the variable type. ##
## Please specify the values in the following format: ##
## Type Example ##
## String "Sample Value" ##
## Boolean True or False ##
## Number 1000 ##
## StringList {"String value 1","String Value 2"} ##
## This sample response file causes the Oracle Net Configuration ##
## Assistant (NetCA) to complete an Oracle Net configuration during ##
## a custom install of the Oracle11g server which is similar to ##
## what would be created by the NetCA during typical Oracle11g ##
## install. It also documents all of the NetCA response file ##
## variables so you can create your own response file to configure ##
## Oracle Net during an install the way you wish. ##
[GENERAL]
RESPONSEFILE_VERSION="11.2"
CREATE_TYPE="CUSTOM"
# Name : SHOW_GUI
# Datatype : Boolean
# Description: This variable controls appearance/suppression of the NetCA GUI,
# Pre-req : N/A
# Default : TRUE
# Note:
# This must be set to false in order to run NetCA in silent mode.
# This is a substitute of "/silent" flag in the NetCA command line.
# The command line flag has precedence over the one in this response file.
# This feature is present since 10.1.0.3.
SHOW_GUI=false
# Name : LOG_FILE
# Datatype : String
# Description: If present, NetCA will log output to this file in addition to the
# standard out.
# Pre-req : N/A
# Default : NONE
# Note:
# This is a substitute of "/log" in the NetCA command line.
# The command line argument has precedence over the one in this response file.
# This feature is present since 10.1.0.3.
LOG_FILE=""C:/netca.log""
[oracle.net.ca]
#INSTALLED_COMPONENTS;StringList;list of installed components
# The possible values for installed components are:
# "net8","server","client","aso", "cman", "javavm"
#INSTALLED_COMPONENTS={"server","net8","javavm"}
#INSTALL_TYPE;String;type of install
# The possible values for install type are:
# "typical","minimal" or "custom"
INSTALL_TYPE=""typical""
#LISTENER_NUMBER;Number;Number of Listeners
# A typical install sets one listener
LISTENER_NUMBER=1
#LISTENER_NAMES;StringList;list of listener names
# The values for listener are:
# "LISTENER","LISTENER1","LISTENER2","LISTENER3", ...
# A typical install sets only "LISTENER"
LISTENER_NAMES={"LISTENER"}
#LISTENER_PROTOCOLS;StringList;list of listener addresses (protocols and parameters separated by semicolons)
# The possible values for listener protocols are:
# "TCP;1521","TCPS;2484","NMP;ORAPIPE","IPC;IPCKEY","VI;1521"
# A typical install sets only "TCP;1521"
LISTENER_PROTOCOLS={"TCP;1521"}
#LISTENER_START;String;name of the listener to start, in double quotes
LISTENER_START=""ERPSERVER""
#NAMING_METHODS;StringList;list of naming methods
# The possible values for naming methods are:
# LDAP, TNSNAMES, ONAMES, HOSTNAME, NOVELL, NIS, DCE
# A typical install sets only: "TNSNAMES","ONAMES","HOSTNAMES"
# or "LDAP","TNSNAMES","ONAMES","HOSTNAMES" for LDAP
NAMING_METHODS={"TNSNAMES","ONAMES","HOSTNAME"}
#NOVELL_NAMECONTEXT;String;Novell Directory Service name context, in double quotes
# A typical install does not use this variable.
#NOVELL_NAMECONTEXT = ""NAMCONTEXT""
#SUN_METAMAP;String; SUN meta map, in double quotes
# A typical install does not use this variable.
#SUN_METAMAP = ""MAP""
#DCE_CELLNAME;String;DCE cell name, in double quotes
# A typical install does not use this variable.
#DCE_CELLNAME = ""CELL""
#NSN_NUMBER;Number;Number of NetService Names
# A typical install sets one net service name
NSN_NUMBER=1
#NSN_NAMES;StringList;list of Net Service names
# A typical install sets net service name to "EXTPROC_CONNECTION_DATA"
NSN_NAMES={"EXTPROC_CONNECTION_DATA"}
#NSN_SERVICE;StringList;Oracle11g database's service name
# A typical install sets Oracle11g database's service name to "PLSExtProc"
NSN_SERVICE={"PLSExtProc"}
#NSN_PROTOCOLS;StringList;list of coma separated strings of Net Service Name protocol parameters
# The possible values for net service name protocol parameters are:
# "TCP;HOSTNAME;1521","TCPS;HOSTNAME;2484","NMP;COMPUTERNAME;ORAPIPE","VI;HOSTNAME;1521","IPC;IPCKEY"
# A typical install sets parameters to "IPC;EXTPROC"
NSN_PROTOCOLS={"TCP;HOSTNAME;1521"}
Does anyone have an idea or some information on how to configure the netca.rsp?
Thanks in advanceJust one more question how could i uninstall ORACLE client, it is not listed in the Add/remove programs.run Oracle Universal Installer (again).
OUI contains uninstall capability -
Enumerate Net Service Names in C++?
Is there some API that would allow me to enumerate the locally configured Net Service Names (those in tnsnames.ora) using C++ without having to parse the file directly. I'm not running Oracle Names on my network.
k1ng87 wrote:
Hi Ed,
thanks for the response. I tried what you suggested:
Data Source=(DESCRIPTION= (ADDRESS= (PROTOCOL=TCP) (HOST=105.1.12.190) (PORT=1521)) (CONNECT_DATA= (SERVICE_NAME=OMP1)))
but get the same result back...here is the full code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Oracle.DataAccess.Client; // ODP.NET Oracle managed provider
using Oracle.DataAccess.Types;
namespace OracleListenTrigger
class Program
static void Main(string[] args)
string oradb = "Data Source=(DESCRIPTION= (ADDRESS= (PROTOCOL=TCP) (HOST=105.1.12.190) (PORT=1521)) (CONNECT_DATA= (SERVICE_NAME=OMP1)));User ID=user;Password=pass;";
OracleConnection conn = new OracleConnection(oradb); // C#
conn.Open();
OracleCommand cmd = new OracleCommand();
cmd.Connection = conn;
cmd.CommandText = "SELECT cast(Count(*) as varchar(20)) as trig FROM ZDMSN.TRIGGER_TEST";
//cmd.CommandType = CommandType.Text;
OracleDataReader dr = cmd.ExecuteReader();
dr.Read();
int cnt;
if (int.TryParse(dr.GetString(0), out cnt))
if (cnt > 0)
System.Diagnostics.Process.Start(@"C:\AutoBatch\backup\trigger2.bat");
cmd.CommandText = "TRUNCATE TABLE ZDMSN.TRIGGER_TEST";
cmd.ExecuteNonQuery();
conn.Dispose();
I used brackets just to see if that would work...I'm no C programmer, so am not sure about the interface. I do question the wisdom of hard-coding that connect descriptor into a compiled program. As a general rule, I don't like hard-coding any run-time values that are even remotely subject to change. Why NOT rely on the tnsnames file?
That aside, to solve your immediate problem the next step I'd take would be to set up a level 16 client-side tns trace. The parms are set into the sqlnet.ora file. Details in the [url http://docs.oracle.com/cd/E11882_01/network.112/e10835/sqlnet.htm#i500318]fine manual
Once you get the trace file, just go on a fishing expedition. -
LDAP(iPlanet & OID) Net Service Names
Hi There,
Is it possible to use iPlanet's LDAP for net service names lookup instaed of Oracle Names?
Is there a way to extract the schema in OID and import into iPlanet ldap. If this could be done then NET8 should be able to connect to the directory server. Why I say this is: according to Oracle documentation, Net8 supports directory naming:
"Service addresses and net service names can be stored in a Lightweight Directory Access Protocol (LDAP)-compliant directory server."
Has anyone done this?.
With the release of Orcale 9i Oracle is due to ship a product called Oracle Names LDAP Proxy. Is there any information on this product.
All comments and suggestions are very welcome and appreciated
Regards
Pat LehaneHi Jay,
Thanks for the reply.
I installed NET 8.1.7 and am trying to connect to iPlanet LDAP through NET8 Configuration Assitant to create an Oracle schema in the in the iPlanet Directory Server but I get an error as follows:
configexception: Could not create Oracle schema:oracle.net.config.ConfigException
You must update the schema from a computer which directly supports your type of directory
There are still only three options in the directory server type in NET8 config assitant.
Is there another way of creating the schema in iPlanet or is there some steps to be done in iPlanet first.
Regards
Pat -
OSX SQLPLUS error:ORA-12162:TNS:net service name is incorrectly specified
Dear oracle community,
just stepped today into oracle world.
Installed OracleXE on my remote UBUNTU server.
From the server, sqlplus works perfectly.
From my client (followed this tutorial http://www.danilovizzarro.it/?p=10 ), i can connect via the
sqlplus connection string: #sqlplus hr/PASS@HOSTipADDRESS/XE .
But when i try just sqlplus and enter username/password later on, i get
ORA-12162:TNS:net service name is incorrectly specified .
My config:
OS - MAC OS X LEOPARD 10.5.5
#echo $ORACLE_SID
XE
#echo $ORACLE_HOME
/opt/oracle/instantclient_10_2/
#echo $TNS_ADMIN
/opt/oracle/tns/
# cat /opt/oracle/tns/tnsnames.ora
XE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = HOSTipADDRESS)(PORT = 1521))
(CONNECT_DATA =
(SID = XE)
Any ideas - is it that sqlplus doesn't locate my tnsnames.ora file, or, maybe, there's an error in it?
thanks for any ideas, recipies, suggestions :)
enjoy the day,
jamesIf I understand you correctly you only give userid and password,but no connect string. That would be a LOCAL connection,which will not work,because you issue the command on the client,not the database server. For local connections you have to specify a value for ORACLE_SID. If you do that on your client (doesn't make sense , because you don't have a database here), you should see a message like 'Oracle not available'. If ORACLE_SID is not defined you get ORA-12162,which is a little misleading.
Werner -
Retrieving local net service name
Hi, Guys:
Are there some APIs (C++ on Windows) from Oracle that can be used to retrieve net service names? Or I have to parse the tnsnames.ora file to get the service names?
Thanks,
Zhenuser2014538 wrote:
Please any body help me ...
I am using Win 7, installed Oracle 10g 32 bit, i wanted to use:
Net Configuration Assistant, its getting open but when i select Local Net Service Name configuration, the wizard is not going further.
Regardsis it windows Ultimate?
What is the Release? it 10gR1 or 10gR2?
First check is it certified or not
https://support.oracle.com/CSP/ui/flash.html#tab=CertifyHomePageV2%28page=CertifyHomePageV2&id=gtlnwdlz%28%29%29
also if possible you can configure manually also. -
Net service name is incorrectly specified
Hi,
Please can anyone explain me why am I getting this error ?
" ORA-12162: TNS:net service name is incorrectly specified "
ThanksORA-12162: TNS:net service name is incorrectly specified
Cause: The connect descriptor corresponding to the net service name in TNSNAMES.ORA or in the directory server (Oracle Internet Directory) is incorrectly specified.
Action: If using local naming make sure there are no syntax errors in the corresponding connect descriptor in the TNSNAMES.ORA file. If using directory naming check the information provided through the administration used for directory naming.
Regards
Asif Kabir -
How to create custom service name in oracle 10g
Hi,
I have installed oracle 10g, it has created default servicename as XE which is having only 4GB memory size. It is not sufficient to import my dmp file. I would like to created my own service name, How can I do it.
Advice thanks for your instruction.Strange...
You'd have to read (and accept) the OTN License Agreement (or, I guess, have a "regular" license), but as stated on the main software downloads index:
"+All software downloads are free, and each comes with a Development License that allows you to use full versions of the products at no charge while developing and prototyping your applications (or for strictly self-educational purposes).+"
http://www.oracle.com/technology/software/index.html -
I've installed Oracle10g XE on laptop with WinXP SP2 and I am trying to figure out how can I create a service name on my host, so that I could connect from a remote PC in my XE database. Do I need to install 10g client?
tks in advance499552,
On your laptop you will need to get into the XE web interface as an administrator (ie system) and allow access from remote clients.
To do this:
Select Administration then there is a menu item on the RHS of the window "Manage HTTP access", then select "Available from local server and remote clients" and Apply changes.
Then you should be able to access the web interface in a client browser using the URL http://yourlaptopname:8080/apex
If you need to access the database via sqlplus or other tool then you should install the 10g client on the remote PC and setup a tnsnames.ora file entry like
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = yourlaptopname)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
on the client.
This assumes you have pretty much a default install and you can then connect using
sqlplus user/password@xe
HTH
Greg -
Net Service Names \ ODBC connection in 8i Pers
Hi,
I am new to Oracle and have 8i Personal
installed. I am trying to get an ODBC connection established to the sample database that was installed but it is not working. I have not been able to get the right combination of net service \ listener \ ODBC parameters. I have tried to do Test Database in the Net8 Assistant even on the
EXT_PROCCONNECTION_DAT service name that shipped but always get a ORA12560:Protocol Adaptor error. Should my protocol be IPC or TCP\IP - I am running local and the sample database is local, too. Does anyone know what parameters to use to get a connection or where I can find more about ODBC connections?
Thanks,
Mike ThrappProblem solved by running ODBC administrator from orahome instead of control panel.
-
How to get the service name of a webservice using UDDI API
Hi,
Iam working on setting up a dynamic partner link in a BPEL, by passing the endpoint of a web service queried from the UDDI (Oracle Service Registry 10.3 ) using the API. Iam able to do it successfully.
Now, for example I have two operations in my wsdl, one to createCustomer and the other to bookTicket. I need to get the operation name using UDDI API so that i can pass it along with the endpoint to the partner link. ie. When i need to createCustomer, my UDDI API code will need to get the service name createCustomer and the endpoint and I would pass them to the partnerlink and the createCustomer operation of my webservice would be called.
Can any one help me to get the service names of the wsdl using UDDI APIs.
Thanks,
AnanthHi sia,
1. Table is APQI
2. field name for session name is GROUPID
regards,
amit m. -
while installing oracle data warehouse builder 10g
i am getting prob such tat
INS0009:Unable to connect to the database with user SYS
java.sql.SQLException:Io exception : could not resolve the connect identifier
OraHome_1\network\ADMIN\SAMPLE\TNSNAMES.ORAhi my problem is in repository assistant IN 2ND STEP
After i enter the
Repository User name sindhu
Repository User Password tiger (As i kept the password of Oracle 10g)
SYSDBA User name SYS
SYSDBA Password tiger (As i kept the password of Oracle 10g)
Host name Local Host
Port number 1521 (default)
Oracle Service name OracleServiceXE
and i am not clicking the SQL* Plus
and clicking on " Next "
then my prob is
INS0009:Unable to connect to the database with the user SYS
java.sql.SQLException : Listener refused the connection with the following error
ORA-12514, TNS: listener dosenot currently know of service requested in connect descriptor
The Connection Descriptor used by the client was
(DESCRIPTION=(ADDRESS=(HOST=LOCALHOST)(PROTOCOL=tcp)(PORT=1521))(CONNECT_DATA=
(SERVICE_NAME=ORACLESERVICEXE)))
hope some one will give me a gud solution
Waiting for ur reply
Sindhu
Maybe you are looking for
-
TV Overscan option is shaded out on nvidia-settings - How to fix it?
I had this problem before already, but I forgot what I did to able to change nvidia-setting overscan option. At the moment it is shaded out so that I can't change it. What can I do? Nevermind... I kind of solved it. I didn't have to do it for this tv
-
Adding/delete/copy a row in table in web dynpro
Hi Expers, We have arequirement where on screen of view there is a "ADD" button,"DELETE" button and a ":COPY" button. once the user click on "ADD" button , a new row must add in the existing table,once the user select a row from table and click on
-
Hi All, I have a requirement as follows. when a user enters any table on selection screen (standard , custom table etc) the tabel contenets shud be displayed in an ALV grid... it also has to be editable and the changes shud be updated in the tabl
-
Hi, I have trouble in regular expressions.. I am trying to do something like this: SELECT PRT_DESC FROM tablename WHERE SUBSTR(PRT_DESC,5,5) LIKE '[0-9][0-9][0-9][0-9][0-9]' Returns 0 rows which is incorrect.. Can anyone help me out?? Thanks
-
Trying to install webclipper add on created script error
[Java Script Application] ScriptLoader.load() failed Error opening input stream (invalid filename?) on chrome://webclipper3-common/content/libs/evernote/Common/Logger/Logger.js I tried to install webclipper yesterday, but was unsuccessful. I continue