Unregister service name from listener
Hi,
I have a default listener (named LISTENER, port 1521) and a database with SID=ORCL. The database automatically registers with the listener, the output of "lsnrctl status" is:
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orcl_XPT" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
And the value of the service_names parameter is:
SQL> show parameter service_names
NAME TYPE VALUE
service_names string orclNow I'd like to prevent clients to connect to the database using the service name 'ORCL', so I changed the service_names init parameter:
SQL> alter system set service_names=testdb;
System altered.
Then I restarted the listener. The "problem" is that the database registers with the listener also the 'ORCL' service name:
Service "TESTDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orcl_XPT" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
Is it possible to somehow prevent the database from registering the service name ORCL with the listener?
If you're wondering why I'm asking that, it's because this database is a duplicated production database (on a different host), and I'd like to prevent the possibility of mistakenly connecting to the production DB. I'm aware it would be better if I change the database's SID altogether, but currently that's not possible.
Thank you in advance for any answer.
Regards,
Jure
Hi coskan,
Thanks for the answer.
Jut a question at the beginning. Doesn't the SID_LIST_listener_name parameter define which databases the listener listens to (and not the single services the database offers)? As I understand, I can prevent automatic registration of a database into the listener, but not selectively allow only some services the database offers? Maybe I'm completely wrong, so please correct me if it's so :-)
As you suggetsed I tried the following:
listener.ora:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1522))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = ORCL)
(ORACLE_HOME = E:\oracle\product\10.2.0\db_4)
tnsnames.ora:
LISTENER=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1522))
SQL> show parameter local_listener
NAME TYPE VALUE
local_listener string LISTENERlsnrctl status:
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1522)))
Services Summary...
Service "ORCL" has 1 instance(s).
Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
So, now only the service ORCL is registred, although the init parameter service_names=TESTDB. I can connect using ORCL as the service_name in the connection string, but not using TESTDB.
Regards,
Jure
Similar Messages
-
Service name from user level through any query
Hi
One of my user want to find the oracle service name through SQL query from user level. This user is not a DBA.
With DBA privs this querry
SELECT NAME, VALUE FROM V$PARAMETER WHERE NAME = 'service_names';
brings the correct result. But user he will not have the access to read the V$PARAMETER table which is part of sys object.
select sys_context('USERENV','SERVICE_NAME') from dual;
SYS_CONTEXT('USERENV','SERVICE_NAME')
SYS$USERS
this query is not giving my the correct result. Is there any way we can grab the service name from user level.
Your cooperation is highly appreciated.
Raoselect sys_context('USERENV','SERVICE_NAME') from dual;You need to note that the result of the above depends on how you connect to the database. If you connect using NET Service, it should give you the SERVICE_NAME.
SQL> conn sys as sysdba
Enter password:
Connected.
SQL> show parameters service_name
NAME TYPE VALUE
service_names string testdb
SQL> select sys_context('USERENV','SERVICE_NAME') from dual;
SYS_CONTEXT('USERENV','SERVICE_NAME')
SYS$USERS
SQL> conn sys@testdb as sysdba
Enter password:
Connected.
SQL> select sys_context('USERENV','SERVICE_NAME') from dual;
SYS_CONTEXT('USERENV','SERVICE_NAME')
testdb
SQL> conn scott@testdb
Enter password:
Connected.
SQL> select sys_context('USERENV','SERVICE_NAME') from dual;
SYS_CONTEXT('USERENV','SERVICE_NAME')
testdb
SQL> conn scott
Enter password:
Connected.
SQL> select sys_context('USERENV','SERVICE_NAME') from dual;
SYS_CONTEXT('USERENV','SERVICE_NAME')
SYS$USERS
SQL>
So you need to understand the use of sys_context -
How to get service name and listening host to connect to oracle DB server?
I have successfully installed oracle db client 10g release 2 on my winXP. But when I tried to use Net Congiguration Assistance to connect to oracle db server. I do not know what is the "service name" and listening "host" I supporse to enter. Where can I get the names?
PLEASE HELP! THANKS!machine name or IP = machine name or IP address of the database server
To know the service name do the following on the server :
$ lsnrctl services
LSNRCTL for Linux: Version 10.1.0.3.0 - Production on 30-DEC-2005 00:24:28
Copyright (c) 1991, 2004, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "test10" has 1 instance(s).
Instance "test10", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
The command completed successfully
$The service name is test10 in my case. Of course you have to use yours. -
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. -
Webservice​s remove service name and port from the URL
Hi community,
so I have a server PC called "superlab"(*) and I also have a webservice called "superlab"(*). Now the users need to enter superlab:8001/superlab to the browser to access the service. I'd like them simply enter superlab.
So my questions:
1. how can I remove the service name from the URL
2. how can I remove the port number from the URL
3. (not related but I have difficulty to understand what it the point in "publishing" a webservice while simply starting it does the job as well)
thanks!
*Not the real nameLuis,
Then, as inolau's notice, create logon screen (or use the default one) and force the users to logon at runtime. Do not pass username/password as parameters.
inolau,
True that if the connection is specified in the config it will be the same for everyone. However, every case is different. For example one of our apps gets S3 credentials (from non-Oracle S3) as session parameters. It uses this common db connection to validate some stuff with the database, read security definitions and then it re-connects the forms using the credentials. -
Custom workflow - props file service name change
All,
I created a custom workflow and registered with OIM with serviceName value as the service name from the SOA composite. I realized that this needs to be changed to RequestApprovalService.
Has anyone done this, if you can you please list the steps.
Thanks in advance,
Prasad.I thought of this as well. It may be possible this way also. Since the composite was primarily generated by the OIM provided template, I didn't prefer to do this. The above mentioned method is working, but i will try this as well when i get a chance.
Regards,
Prasad.
Edited by: pk**** on Jun 8, 2011 12:21 PM -
please suggest how can i create service name in oracle through my program,
Thank you for your immediate response.
We want to create a net service name from our source code.
Usually we'll create a net service name using "net configuration assistant" or "net manager" manually.Now, we have to automate this process through our source code. plz help for the same. -
Sap Message Service Name change
hello guys,
i need you help with something.
I would like to change the sap Message Service Name from sapms<SID> to sapms<SID>_new.
Is this possible?
i am thinking to do this in RZ11 and change rdisp/msserv value... am i on the right path?
Are there some limitations in message server service name?
Thank you for answer.Hi Oliver,
Does those same SID SAP systems , carries same instance number?
As per SAP Note # 99435 , you should not edit SAPLOGON.ini file manually , instead carry out all changes via SAPLOGon PAD.
Pls add both systems with different IP specifications and respective instance number details.
Check if you are able to connect to correct instance
Regards -
I am unable to get the ODBC Driver version 8.1.6.4.0 to get a list of TNS Service names from a shared TNSNAMES.ORA file. If I type in the service name and test the connection the test is successfull so I know that the shared file is being used. Is there a way to get the TNS services from a shared tnsnames.ora file to be listed in the pulldown?
Can future versions of the ODBC driver get the location of the TNS names file from the registry if the TNS_ADMIN value exists for the ORACLE HOME corresponding to the ODBC driver you are using?
<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Justin Cave ([email protected]):
If I remember correctly, when I implemented the TNS name dropdown, I blindly grab the tnsnames.ora file in the local Oracle home. If the shared file isn't there, I wouldn't expect this to work.
Justin<HR></BLOCKQUOTE>
null -
Where is this listener service Originated from?
I appreciate any input on where the listener service is originated from for the following scenario :
===========================
Listener.ora File
===========================
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = E:\12c\product\12.1.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:E:\12c\product\12.1.0\dbhome_1\bin\oraclr12.dll")
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
=======================
---End of Control File
=======================
=======================
Listener Services
=======================
LSNRCTL> SERVICE
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "orcl.Racki-PC" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "orclXDB.Racki-PC" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: RACKI-PC, pid: 1860>
(ADDRESS=(PROTOCOL=tcp)(HOST=Racki-PC)(PORT=49285))
Service "racki.racki-pc" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
The command completed successfully
========================================
Services Originated from........
========================================
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
=======================================================
SID_NAME = CLRExtProc <--- The above is originated from Listener file Entry
=======================================================
Service "orclXDB.Racki-PC" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
========================================================================
dispatchers=(PROTOCOL=TCP) (SERVICE=orclXDB) <--- The above is originated Control file Entry
========================================================================
Service "orcl.Racki-PC" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
==========================================================
service_names=orcl.Racki-PC <--- The above is originated Control file Entry
==========================================================
Service "racki.racki-pc" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
=================================
Where is this service Originated from?
==================================
I have PDB named racki running
SQL> select name from v$services;
NAME
racki.racki-pc
orclXDB
orcl.Racki-PC
SYS$BACKGROUND
SYS$USERS
Thank you very much for your input in advance.
RackiIt looks like your database is using automatic service registration (most do these days) in which case entries in the listener.ora aren't generally needed.
Justin -
Listener cannot solve service name
Our server has 2 databases (8i) on AIX 4.3.3.
I created a new one (newdb) for trainning. I modified listener.ora at /etc and $ORACLE_HOME/network/admin folders. Also modified tnsnames.ora on server side. On my workstation, there are 2 Oracle home. One is orawin95 (Oracle 8 client) and the other one is ora8i.
The problem is I can connect to newdb using sql*plus and DBA studio under ora8i. But I cannot connect to newdb using sql*plus under orawin95. I modified tnsnames.ora under both folders.
Is there anythong need to be modified on the server?
Please help.
Thanks in advance.Hello Wang, I am in the same boat. I have installed Oracle 8i Personal Edition (C:\Oracle\Ora81) on my computer running Win 98. I have installed the Developer 2000 (C:\Orawin95) from CD tools Pack V6.
When I invoke SQL*Plus from Database installation it works but when I invoke SQL*Plus from Tools installation it says that the TNS cannot resolve the service name. etc.
If anyone had this problem and fixed it please respond. Thanks
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Gu Wang ([email protected]):
Our server has 2 databases (8i) on AIX 4.3.3.
I created a new one (newdb) for trainning. I modified listener.ora at /etc and $ORACLE_HOME/network/admin folders. Also modified tnsnames.ora on server side. On my workstation, there are 2 Oracle home. One is orawin95 (Oracle 8 client) and the other one is ora8i.
The problem is I can connect to newdb using sql*plus and DBA studio under ora8i. But I cannot connect to newdb using sql*plus under orawin95. I modified tnsnames.ora under both folders.
Is there anythong need to be modified on the server?
Please help.
Thanks in advance.<HR></BLOCKQUOTE>
null -
Getting host, port from the tnsnames.ora with the service name
Hi.
I think that I asked a similar question yesterday. I want to ask if there is a way to get host and port from the tnsnames.org with a given service name. Somebody answered it for getting SID in the sqlplus. so I tried it in a similar way, but it didn't work.
I have a service name, but I don't know how to get host and port. I know that I can parse the tnsnames.ora file to get it, but if possible, I want to use the more official and safe way.
I'd appreciated if somebody knows it.caesarkim wrote:
Hi.
I think that I asked a similar question yesterday. I want to ask if there is a way to get host and port from the tnsnames.org with a given service name. Somebody answered it for getting SID in the sqlplus. so I tried it in a similar way, but it didn't work.
I have a service name, but I don't know how to get host and port. I know that I can parse the tnsnames.ora file to get it, but if possible, I want to use the more official and safe way.
I'd appreciated if somebody knows it.Oracle RDBMS does not require SQL*Net to operate.
Oracle RDBMS does NOT now or care about content of any tnsnames.ora file.
Realize that each (remote) user can have their own personalized copy of tnsnames.ora
The content of tnsnames not NOT have to reflect any reality.
I could post the content of my tnsnames.ora & it would be useless to everyone reading. -
Finding RFC name from web service.
Hi,
I have web service URL (WSDL) but I dont have RFC name or ABAP object name from which this Webservice is created. Since Web service is created long back..
So is there any way out to find out Object name from Webservice ?
Regards,Hi santosh,
In the url , you will get the technical name of the webservice we can use this name to track the Fm.
Consider this for get method : http://server.localhost/sap/opu/odata/sap/ZAPLX_FMAZ_VA_CRT_SO/zaplx_fmaz_va_crt_soCollection?$filter=i_createb_low eq '2014-03-24T10:56:39Z' .
In the above webservice you can get the technical name ZAPLX_FMAZ_VA_CRT_SO. take this name and find the entry in activate and maintain service in /IWFND/MAINT_SERVICE tcode.
then click on the entry and click add system alias button u will find the data model name there , use this name in se80 under data model . Double click on the technical name and click "open generator button" to get the RFC which is mapped. -
Error converting from service name
Hi,
While installing NW04 6.40 Java System > Distributed > Central Instance Host preparation, i found this error but the installation is still going well. I'm wondering whether it is an issue for my install.
WARNING[E] 2006-11-02 13:07:35 [syxxcnamrs.cpp:128]
PSyServicesEntry CSyIPNameResolverImpl::getServiceByName(const iastring& serviceName, const iastring& protocol) const
Error converting from service name=sapmsRDX/protocol=tcp to port number. SAPRETURN=12
Thanks,
TorpedoThere is an entry missing:
add in /etc/services
sapms<SID> 36<systemnumber>/tcp
Markus -
Unregister Essbase/EAS from Shared services
Hi Is it possible to unregister essbase, EAS from shared services? if so can some one please guide me unregister. we are on EPM 11.1.1.3
ThanksHi,
I've a similar issue with my customer.
In fact we have an an application with several databases and end users have read access on one, write acces on another and finally calculation accesses (but only on few calc scripts) on the last database.
SO, in shared security mode we can't reach all these requirements, beacause access are granted at the Essbase application level.
Therefore, the only solution I've found to put Essbase in stand-alone mode is to drop the essbase.sec file and recreate the essbase applications thanks to EAS or maxl commands.
For EAS I've found a topic on this forum, and the solution is to edit the olapadmin.properties file on the installation path of EAS server and to swith the value HUBProvisionEnabled=true at false.
You have to stop and start the services to do that but it works. And when started, you can use the EAS default login.
Edited by: Eric_M on May 2, 2011 6:02 AM
Maybe you are looking for
-
How do I get my screen back to 80%
Images are too large for the screen. At one time there was a fix for this, but I have forgotten what it was. I have windows 7
-
If I have CS5 installed on one machine, do I need a new license to install or transfer to another machine?
-
An error occurred while ready from devices
I am using windows vista and trying to sync up to my pc. When I try to sync up, I get the message that an error occurred while reading from device and an error occurred while writing to the device. I have two iPods. One iPod had a restore done to it.
-
My notes are gone. How do I get them back?
All of my notes are gone. Where are they??
-
How to fix home button that is not working
My home button is harder to use it take several tries to get it to work.