DATABASE SERVICE NAME
HOW TO GET DATABASE SERVICE NAME?
I NEED IT INORDER TO INSTALL COMPANION PRODUCTS?
ANY HELP
THANKS ANYWAY
This is what i recieve when i click on help regarding database service name?
"Database Service Name Specify the database service name for the database where you want to install the Oracle HTML DB database objects. The database service name is usually the same as the global database name for the database, for example, sales.us.oracle.com."
but I don't have domain name. I installed Oracle on a standalone machine for testing purposes.Do I need to be on a network using HTML DB??
MY DB NAME IS GPI, CONNECTION STRING IS
(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=GPI)))
BUT IT IS NOT WORKING?
AND WHAT IS WINDOWS DATABASE SERVICE NAME?
Similar Messages
-
Database Service Name or Global Database Name with Oracle 10G, when Oracle
I have an old installation of Oracle 9i (SID=ORCL) and now have installed Oracle 10G (SID=ORC2). I can get connection to Oracle 10G if i define it as an Oracle 8 compatible identification (ie I access to a SID, and don´t provide a Service Name.
Now I want to install Oracle HTML DB, and succeeded to install the SQL-script that came with the download, but when I install Apache and HTML DB from the Oracle Companion CD I am asked to give the Database Service Name (in the Help it is explained as the Global Database Name).
When i give the Net Service Name I get error messages (incomprehensible).
When I look in Net Manager, the Net Service Name does not have a Service Name, but only points to a SID (ie ORC2).
Where can I find the Database Service Name (or Global Database Name), OR define it if it is not defined??
Thanks for your help,create a net service for oracle10g and provide the name of this service during HTML DB installation it is required for installation.
-
Resolve database service name using in SQL
Hi all!
My question is:
Is it possible to resolve database service name (e.g. TNS) from SQL only (without logging into the server with oracle user and execute tnsping)?
I'll give you a bit background about my question:
In DataGuard, if you query v$archive_dest, you can see the SERVICE NAME of the standby database in the STANDBY records. I would like to know what is the real server name and database instance of the standby database.
I don't want to login to the primary server with oracle user (let's say that I can not - it's a program really, not me...).
Let's also say that the only user I have is a read-only user to the database (with grants to all tables and views, but cannot execute privileged DBMS sys packages).
Running "SQL> host tnsping NAME" doesn't do the job, since this is only for SQL plus.
Doe's anyone have any idea? maybe v$ view that contains the TNS resolution (tried to find, no success)? maybe a tnsping alike command/function?
Thanks a lot!
MaayanMaayanB wrote:
I'll explain the reason.
I'm working on an agentless product that connects to databases, storage and hosts, and models them into a small CMDB.
Since my product needs to model the "STANDBY" relationship between primary and standby DataGuard databases - I need to be able to resolve the value of the "DESTINATION" field from "V$ARCHIVE_DEST", where TARGET IN ('STANDBY','REMOTE').
I could login to the server and execute "tnsping DBNAME", but the problem is that when a server has more than one ORACLE_HOME (hence, more than one tnsname.ora file), I need to make sure that the user I'm using to login to the server has all environment variables conigured properly for each database installed on the server (BTW, the unix user is also a "naked" user with no privileges except the sudo's defined for it).
So I assume that the best way to be sure that the environment variables are correctly defined is when I login to the database.
This is the reason I need to resolve service names using SQL.
BTW, the database process somehow uses the Oracle Net Services to resolve the same value when it sends the redo log files to the standby server - and I'd like to resolve it the same way (or other, if not possible). If it uses the sys privileges, and it executes the package that lets you execute something on the server ("tnsping", in this case), and this is the only way it can be done - I need to start thinking on a different way to resolve the problem.What you are missing is that when "the database process somehow uses the Oracle Net Services to resolve the same value when it sends the redo . . ." is that Net services is NOT just resolving the name for the database. It is also handling the actual transport of the files. That name resolution is not passed back to the database.
>
Anyway, I'm not a hacker or something alike, It's just that my product doesn't know how to pick up the phone and dial :) -
How to use the default database service name on creating procedure for data
how to use the default database service name on creating procedure for datagaurd client failover ??? all oracle doc says create a new service as below and enable at DB startup. but our client is using/wanted database default service to connect from application on the datagaurd environment (rac to non rac setup).please help.
Db name is = prod.
exec DBMS_SERVICE.CREATE_SERVICE (service_name => 'prod',network_name =>'prod',failover_method => 'BASIC',failover_type => 'SELECT',failover_retries => 180,failover_delay => 1);
says already the service available.
CREATE OR REPLACE TRIGGER manage_dgservice after startup on database DECLARE role
VARCHAR(30);BEGIN SELECT DATABASE_ROLE INTO role FROM V$DATABASE;
IF role = 'NO' THEN DBMS_SERVICE.START_SERVICE('prod');
END IF;
END;
says trigger created, but during a swithover still the service is listeneing on listener.
tns entry.
prod =
(DESCRIPTION =
(ADDRESS_LIST =
(LOAD_BALANCE = YES)
(ADDRESS = (PROTOCOL = TCP)(HOST = prod1)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = prod2)(PORT = 1521)) ---> primary db entry
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = proddr)(PORT = 1521)) --> DR DB entry
(CONNECT_DATA =
(SERVICE_NAME = prod)
thanks in advance.
Edited by: 854393 on Dec 29, 2012 11:52 AMHello;
So in the example below replace "ernie" with the alias you want the client to use.
I can show you how I do it :
First an entry need to be added to the client tnsnames.ora that uses a SERVICE_NAME instead of a SID.
ernie =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = Primary.host)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = Standby.host)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ernie)
)Next the service 'ernie' needs to be created manually on the primary database.
BEGIN
DBMS_SERVICE.CREATE_SERVICE('ernie','ernie');
END;
/After creating the service needs to be manually started.
BEGIN
DBMS_SERVICE.START_SERVICE('ernie');
END;
/Several of the default parameters can now be set for 'ernie'.
BEGIN
DBMS_SERVICE.MODIFY_SERVICE
('ernie',
FAILOVER_METHOD => 'BASIC',
FAILOVER_TYPE => 'SELECT',
FAILOVER_RETRIES => 200,
FAILOVER_DELAY => 1);
END;
/Finally a database STARTUP trigger should be created to ensures that this service is only offered if the database is primary.
CREATE TRIGGER CHECK_ERNIE_START AFTER STARTUP ON DATABASE
DECLARE
V_ROLE VARCHAR(30);
BEGIN
SELECT DATABASE_ROLE INTO V_ROLE FROM V$DATABASE;
IF V_ROLE = 'PRIMARY' THEN
DBMS_SERVICE.START_SERVICE('ernie');
ELSE
DBMS_SERVICE.STOP_SERVICE('ernie');
END IF;
END;
/lsnrctl status - should show the new service.
When I do this the Database will still register with the listener. I don't give that to the clients. That one will still be available but nobody knows about it. Meanwhile "ernie" moves with the database role.
So in my example the default just hangs out in the background.
Best Regards
mseberg
Edited by: mseberg on Dec 29, 2012 3:51 PM -
How to add a new database service name to 9iDS
Hello,
I installed 9iDS and 9iDB on my laptop which worked fine for few months. I had trouble with 9iDB I/O system so I reinstalled 9iDB with a new SID name. I updated 9iDS by replacing old SID name with new SID name in tnsnames.ora file but it did not work.
Please someone suggest where should I update in 9iDS to access my newly installed database service with new SID so that forms appication builder can connect properly.
Currently it is saying :
ORA-12514: tns listener could not resolve service name given in connect descriptor.
Thanks,
[email protected]Shyam,
could it be that you are still starting the old database tnslistener. Please make sure that you start the listener for your new Db instance.
Frank -
hi,
i made a physical standby database architecture with one db as a production db on PC1 and on the other site i created a physical standby db on PC2 ,,
now i did a SWITCHOVER and after that the db on PC1 become physical standby and db on PC2 has become primary db,,,,
my application running before SWITCHOVER was using a service name that connect it to PC1,,now that application is not running giving me error that initialization or shutdown in progress,,,
what shud i do now?? will i need to change the service name of my application on each client,,,other option is to use an ORACLE NAMES SERVER,,but if i wanna wont use both of the ways then what can i do??
RegardsThis is recommended in metalink notes.
As you say, oracle names as one option. You just go and change the ipaddress/hostname,whatever you use in the tnsnames.
Your end-users are still trying to access the old primary, which is secondary now. And this db is in mount stage, that is the reason they are getting this kind of error.
If you have very less users and can be reachable to change the tnsnames then its okay.
SJH
OCP DBA -
Database service name changed after streams configuration
Hi All,
I test setting streams replication in my database 10g from a stand-alone database to a RAC database.
Replication worked fine but i sow strange thing, my service names in the target database (RAC environment) has changed like the following output:
SQL> sho parameter service
NAME TYPE VALUE
service_names string SYS$STRMADMIN.STREAMS_QUEUE.AB
DATAWH
So the value of my service names has changed, i don't know why. I tried to remove streams configuration and restart the database but it's not changed and it cause connexion problem from client.
Does anybody can help me to solve this problem, why it's changing and how to take it back to the old service names.
Thanks for your help
raitsarevoNona has any idea about my problem
Please -
Listener Show database Service Name In Wrong LSITENER Service
dear Gurus,
I need your help to understand this Listener stuff.
Resume :
Server : Linux RH5
Oracle : 10G2
In this server I've 2 database Instances lets say DMWEB adn CFMP
Because several times we need to restart the Listener for CFMP i've choose to have separate Listener for each Database.
So, i've created 2 Listener :
LISTENER_CFMP =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = srvldbp13)(PORT = 1522)
(SEND_BUF_SIZE=4194304)
(RECV_BUF_SIZE=4194304)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = srvldbp13 )(PORT = 1521)
(SEND_BUF_SIZE=4194304)
(RECV_BUF_SIZE=4194304)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
SID_LIST_LISTENER_CFMP =
(SID_LIST =
(SID_DESC =
(ORACLE_HOME = /u01/app/oracle/product/10.2)
(SID_NAME = CFMP)
LISTENER_DMWEB =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = srvldbp13)(PORT = 1523)
(SEND_BUF_SIZE=4194304)
(RECV_BUF_SIZE=4194304)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
SID_LIST_LISTENER_DMWEB =
(SID_LIST =
(SID_DESC =
(SDU = 32767)
(ORACLE_HOME = /u01/app/oracle/product/10.2)
(SID_NAME = DMWEB)
When I get the Status for each listener I get :
LSNRCTL> set current_listener LISTENER_CFMP
Current Listener is LISTENER_CFMP
LSNRCTL>
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=srvldbp13)(PORT=1522)(SEND_BUF_SIZE=4194304)(RECV_BUF_SIZE=4194304)))
STATUS of the LISTENER
Alias LISTENER_CFMP
Version TNSLSNR for Linux: Version 10.2.0.4.0 - Production
Start Date 18-DEC-2009 10:54:44
Uptime 19 days 23 hr. 9 min. 13 sec
Trace Level off
Security ON: Local OS Authentication
SNMP ON
Listener Parameter File /u01/app/oracle/product/10.2/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/10.2/network/log/listener_cfmp.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=srvldbp13 )(PORT=1522)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=srvldbp13 )(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
Services Summary...
Service "CFMP.world" has 1 instance(s).
Instance "CFMP", status READY, has 1 handler(s) for this service...
Service "CFMP_SITE2.world" has 1 instance(s).
Instance "CFMP", status READY, has 1 handler(s) for this service...
Service "CFMP_SITE2_DGB.world" has 1 instance(s).
Instance "CFMP", status READY, has 1 handler(s) for this service...
Service "CFMP_SITE2_DGMGRL.world" has 1 instance(s).
Instance "CFMP", status UNKNOWN, has 1 handler(s) for this service...
Service "CFMP_SITE2_XPT.world" has 1 instance(s).
Instance "CFMP", status READY, has 1 handler(s) for this service...
Service "DMWEB_SITE2" has 1 instance(s).
Instance "DMWEB", status READY, has 1 handler(s) for this service...
Service "DMWEB_SITE2_DGB" has 1 instance(s).
Instance "DMWEB", status READY, has 1 handler(s) for this service...
Service "DMWEB_SITE2_XPT" has 1 instance(s).
Instance "DMWEB", status READY, has 1 handler(s) for this service...
The command completed successfully
LSNRCTL>
LSNRCTL> set current_listener LISTENER_DMWEB
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=srvldbp13)(PORT=1523)(SEND_BUF_SIZE=4194304)(RECV_BUF_SIZE=4194304)))
STATUS of the LISTENER
Alias LISTENER_DMWEB
Version TNSLSNR for Linux: Version 10.2.0.4.0 - Production
Start Date 18-DEC-2009 11:17:33
Uptime 19 days 22 hr. 45 min. 50 sec
Trace Level off
Security ON: Local OS Authentication
SNMP ON
Listener Parameter File /u01/app/oracle/product/10.2/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/10.2/network/log/listener_dmweb.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=srvldbp13)(PORT=1523)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
Services Summary...
Service "DMWEB" has 1 instance(s).
Instance "DMWEB", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
LSNRCTL>
LSNRCTL>
My Question
Why the Services belonging to DMWEB database are registred on Listener CFMP????
This Services are in LISTENER_CFMP when they should be in LISTENER_DMWEB right?
Service "DMWEB_SITE2" has 1 instance(s).
Instance "DMWEB", status READY, has 1 handler(s) for this service...
Service "DMWEB_SITE2_DGB" has 1 instance(s).
Instance "DMWEB", status READY, has 1 handler(s) for this service...
Service "DMWEB_SITE2_XPT" has 1 instance(s).
Instance "DMWEB", status READY, has 1 handler(s) for this service...
What have I done wrong in listener configuration ???
Thxs if you can help
Rgds
CarlosWhy the Services belonging to DMWEB database are registred on Listener CFMP????Because Oracle is listening by default on port 1521 (and it is your CFMP listener) and the LOCAL_LISTENER parameter of the database DMWEB has been left empty ?
That said, I'm not sure to understand why you need a listener for each db.
Nicolas. -
How to connect the database (JDBC) using service name rather than SID
How should we make the connection to the database using service name. Initially, we are using the SID to make the database connection, with following setting in the data-source.xml in OC4J using ABCDB as the SID.
<data-sources>
<data-source
class="com.evermind.sql.DriverManagerDataSource"
name="jdbc/ABCDB"
location="jdbc/ABCDB"
pooled-location="jdbc/OracleDSPooled"
xa-location="jdbc/xa/OracleDSXA"
connection-driver="oracle.jdbc.driver.OracleDriver"
username="ABC"
password="ABC"
url="jdbc:oracle:thin:@191.1.4.126:1521:ABCDB"
/>
</data-sources>
It work, but now we need to make the connection using this service name ABCSERVICE, but it doesn't work in the OC4J (JDBC). May I know how should we handle this connection?
Thanks and Regards,
PangFinally, I got the solution to make the database connection using service name, with putting the tnsname setting in URL portion.
url="jdbc:oracle:thin:@(description=(address=(host=191.1.4.126)(protocol=tcp)(port=1521))(connect_data=(SERVICE_NAME = ABCSERVICE)))"
And now, it is working fine.
Regards,
Pang -
Hi,
I am working on updating an existing flow to include a Database Adapter service. This flow previously had a service called DB_CONSTANTES, but this removed from the flow some time ago. (If i search the flow project files, I still see references to it, but not within the .bpel file).
I would like to create a service with the same name. In JDEV I do not see any references to DB_CONSTANTES, but when I attempt to create the service I am told that a service of that name already exists. I am pointed to myflow/bpel/DB_CONSTANTES.wsdl
Is it safe/correct to delete this wsdl file and then just proceed with the service creation again. I realise I could just create a new service name, but I would like to be consistent in naming the service.
Many Thanks - AnitIt is safe to delete wsdl. I suppose as the wsdl already exists it is giving the error while you try to create the service with the similar name. On safe side, you can take a backup of the process and do the changes.
-
Get port number,host name,service name from database
Is there any way to know the host name,port number, sid and the service name of a particular instance from the database.
> Is there any way to know the host name,port number, sid and the service name
of a particular instance from the database.
Why?
The host name in the HOST_NAME column of V$INSTANCE for example, may not be the hostname/IP address that the local Listener listens for connections on. Or the Listener can listen on that host name/IP and several other local IP addresses.
The port number used for listening for connections by clients, are determined by the Listener's configuration.
Thus if you can explain the requirement for this info, maybe the forum can provide better and more specific answers. -
The service name is invalid When starting the Database Control
Dear Oracle Expert,
I have installed Oracle database 11g on Windows Professional x64 Edition Version 2003 Service Pack 2..
When I try to start the Database control after renaming the IP_address to the local machine name which is robert. It prompts back with an error.
C:\>emctl status dbconsole
Environment variable ORACLE_SID not defined. Please define it.
C:\>set ORACLE_SID=ocp11g
C:\>emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.1.0.6.0
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
https://192.168.1.67:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is not running.
C:\>emctl start dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.1.0.6.0
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
https://192.168.1.67:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control ...The service name is i
nvalid.
More help is available by typing NET HELPMSG 2185.
C:\>hostname
robert
C:\>emctl status dbconsole
OC4J Configuration issue. C:\app\Administrator\product\11.1.0\db_1/oc4j/j2ee/OC4
J_DBConsole_192.168.1.67_ocp11g not found.
C:\>set ORACLE_SID=ocp11g
C:\>emctl status dbconsole
OC4J Configuration issue. C:\app\Administrator\product\11.1.0\db_1/oc4j/j2ee/OC4
J_DBConsole_192.168.1.67_ocp11g not found.
C:\>emctl start dbconsole
OC4J Configuration issue. C:\app\Administrator\product\11.1.0\db_1/oc4j/j2ee/OC4
J_DBConsole_192.168.1.67_ocp11g not found.
C:\>SET ORACLE_HOME= C:\app\Administrator\product\11.1.0\db_1\oc4j\j2ee\OC4J_DBC
onsole_robert_ocp11g
C:\>set ORACLE_SID=ocp11g
C:\>emctl status dbconsole
OC4J Configuration issue. C:\app\Administrator\product\11.1.0\db_1/oc4j/j2ee/OC4
J_DBConsole_192.168.1.67_ocp11g not found.
C:\>emctl start dbconsole
OC4J Configuration issue. C:\app\Administrator\product\11.1.0\db_1/oc4j/j2ee/OC4
J_DBConsole_192.168.1.67_ocp11g not found.
C:\>
Thanks in advance.
RleeHello Oracle experts,
I have to managed to Configure the Database Control by configuring a Microsoft Network adapter on my laptop but
right now I can't access it within the URL.
Tests of the running Database control include:
C:\Documents and Settings\Administrator>emctl status dbconsole
Environment variable ORACLE_SID not defined. Please define it.
C:\Documents and Settings\Administrator>SET ORACLE_SID=ocp11
C:\Documents and Settings\Administrator>emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.1.0.6.0
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
http://robert:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is running.
Logs are generated in directory C:\app\Administrator\product\11.1.0\db_2/robert_
ocp11/sysman/log
C:\Documents and Settings\Administrator>
When I try to access the database control, I am un able to.
The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
Please try the following:
If you typed the page address in the Address bar, make sure that it is spelled correctly.
Open the robert:1158 home page, and then look for links to the information you want.
Click the Back button to try another link.
Click Search to look for information on the Internet.
HTTP 404 - File not found
Internet Explorer
Is this something related to Internet Explorer.
Kindly rescue me out.
Regards,
RLee -
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. -
Service name and database name are different.
Hi,
I had created a database with name PROD, latter i changed DB name to PRODT as per management request.
But i notice the following things.
1. At OS level ORACLE_SID variable is still PROD.(.bash_profile too have this entries)
2. From sql prompt DB_NAME is PRODT.
3. In Listener service name is showing PRODT and instance name is PROD.
can any one please explain me, why oracle is behaving like this.
Our all the applications are working fine with out any issues till now.
[oracle@qual ~]$ echo $ORACLE_SID
PROD
[oracle@qual ~]$ sqlplus '/ as sysdba'
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Mar 5 10:35:01 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 608174080 bytes
Fixed Size 1220868 bytes
Variable Size 209719036 bytes
Database Buffers 394264576 bytes
Redo Buffers 2969600 bytes
Database mounted.
Database opened.
SQL> select name from v$database;
NAME
PRODT
SQL> !lsnrctl status
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 05-MAR-2013 10:38:30
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=qual.com)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 05-MAR-2013 10:36:54
Uptime 0 days 0 hr. 1 min. 35 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u001/app/oracle/product/10.2.0/network/admin/listener.ora
Listener Log File /u001/app/oracle/product/10.2.0/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=qual.com)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PRODT" has 1 instance(s).
Instance "PROD", status READY, has 2 handler(s) for this service...
Service "PRODT_XPT" has 1 instance(s).
Instance "PROD", status READY, has 2 handler(s) for this service...
The command completed successfully
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
[oracle@qual ~]$Hello,
I had created a database with name PROD, latter i changed DB name to PRODT as per management request.Using NID ?
But i notice the following things.
1. At OS level ORACLE_SID variable is still PROD.(.bash_profile too have this entries)ORACLE_SID is the instance name. Changing DB name does not change the instance name. You can manually change it by creating a new PFILE/SPFILE and Password file for the new instance.
2. From sql prompt DB_NAME is PRODT.Yes, as you have changed the DB name from PROD to PRODT.
3. In Listener service name is showing PRODT and instance name is PROD.Database name is PRODT and the instance associated with it is PROD. There can be multiple instances for a single database.
Regards,
Shivananda -
"Database Log In Failed - TNS could not resolve service name"
Hello.
I have an installation of Oracle 10g Release 2 (10.2) for Microsoft Windows (32-Bit) using WinXP Pro on my computer.
I have also installed the compantion CD on the same machine (In a separate home directory) so that I can use PL/SQL.
I have searched through the forum threads but haven't found any similar problem. The solutions that fixed other peoples problem don't seem to be applicable to mine.
I have created a user 'antagning' and some tables and also some PL/SQL procedures that compile fine. When I request
http://localhost:7777/pls/projekt/firsttest
(firsttest is the procedure. doesn't take any params)
I get the famous
Database Log In Failed
TNS could not resolve service name
Verify that the TNS name in the connectstring
entry of the DAD for this URL is valid.
This is my DAD file:
<location /pls/projekt>
SetHandler pls_handler
PlsqlDatabaseUsername antagning
PlsqlDatabasePassword antagning
PlsqlDatabaseConnectString ORCL
PlsqlAuthenticationMode Basic
PlsqlErrorStyle DebugStyle
</location>
and my tnsnames.ora looks like: (there is only one on the machine so there is no conflicting setups I think)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST =
localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORCL)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
finally, this is my sqlnet.ora:
# sqlnet.ora Network Configuration File: c:\oracle10g\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
I haven't set any default domain because the database runs on my local computer and not on a microsoft server in a domain. Is that correctly concluded?
I get an OK message when I ping my TNS with "tnsping orcl" (Maybe that information is not relevant in the context)
My webserver is started and is running fine (I think). If I request:
http://localhost:7777/pls/projekt (without any procedure name)
I get the message that no procedure is specified to run so I get some sort of answer from the webserver, so far so right.
When I log in using sqlplus with my own created user account I have to leave the database field empty or the login will fail. If I specify the field with the string orcl
the login will fail. Does that imply that something is not quite right? Maybe that hasn't got anything to do with the failure message.
/FredrikHas anyone resolved the problems with using TNSFormat?
As is, I want to move to a shared server setup and to do that I want to use TNSFormat and point to a tns entry which is setup for IPC+Shared connection.
But the Oracle Home that has the Oracle HTTP Server (from the companion CD) does not have SQL*net installed and does not seem to understand TNS.
I have TNS_ADMIN setup, I have ORACLE_HOME_LISTENER poiting to the DB Home.
for the OHS home, using "sqlplus login/pw@ipcshared" works, but "tnsping ipcshared" does not, since tnsping does not exist in the OHS home.
I cannot install SQL*Net from the CD1, since it requires a dedicated/new home and does not want to install in the OHS Home.
The only format that works in a dedicated OHS Home setup is ServiceNameFormat.
Any help or input would be very helpful.
Regards
ps. This is a redhat linux setup.
Message was edited by:
Oli_t
Maybe you are looking for
-
Hi, I am having a table view with some data populated in it. I want to clear the data in the table view anad initialize it on click of a button. Can some one please help me in resolving this issue. Thanks, Ravi G
-
Photoshop CS5 suite will not open files or any pictures
We are seeing a problem with our CS5 suite with Photoshop only. The actual Photoshop program will open and allow us to browse the menus, but we cannot open and recent files, or open any new pictures with it. Also we are not able to create a new file
-
INVALID Java Source/Class - 8i
Hi, When I loaded the example java source: public class Oscar { // return a quotation from Oscar Wilde public static String quote() { return "I can resist everything except temptation."; and looked at the table USER_OBJECTS for the result I find them
-
apple boosted of 200 improvements/changes to ios 6. I have yet to find more than 15. does anyone know where these can be found? I hate not running an os I don't want, but after hearing about ios 7, I think 6 is the lesser of 2 evils and installed it.
-
Labview 2012 sp1 Linux No Help ?
Hi all, my help is not working in Labview 2012 sp1 (Linux edition). I keep reading that i need to change a .lvbrowser file, but this file does not exist anywhere on my system ( i have searched everywhere). When i first selected help it asked me to s