Cannot connect to Oracle 10g XE Server from Client
I have tried in vain to connect to the Server from a client installation using both browser and SQLPlus. Someone help me out pls...
Glogo.
I have read the SelfStudy many times but Sheila can't help me. I have installed 10g XE Client on a different pc and tried connecting as follows to no avail:
FROM Run SQL Command line; I entered "conn glogo/*****@GServer:8080/apex" the report I always get is
ORA-12170: TNS:Connect timeout occured
From Internet Explorer; I entered "http://GServer/127.0.0.1:8080/apex" the report I get is internet explorer cannot display the webpage
I ensured the listener is on by typing LSNRCTL STATUS on the command line of the system running the Server. The report indicates that the Listener is ready.
I am still wondering what is wrong! I have also changed network setting from DHCP to static IP without results. What next friend(s)? Do you know?
Similar Messages
-
Cannot connect to Oracle 8i with IIOP from JDev3.1
Hi,
I have the problem of connect to Oracle 8i with IIOP from JDeveloper 3.1 when I build application with BC4J. I can connect to my Oracle 8i database with ODBC easily but failed with IIOP. Does anyone here has the same experience?
Any help will be appreciated. Thank you.
nullHi Daniel:
I've solved the problem mentioned above. It requires two settings:
I) Enabling Multithreaded Server Support for IIOP Clients;
II) Listener's listening to port 2481
Of course you should have installed JServer into your Oracle 8i database.
In your init.ora file, you should have the following two lines:
mts_dispatchers = "(PROTOCOL=TCP)(PRE=oracle.aurora.server.SGiopServer)"
mts_dispatchers = "(protocol=TCP)"
To confirm this you may use SQLPLUS to list the parameters of the database setting:
mts_dispatchers string (PROTOCOL=TCP)(PRE=oracle.aurora.server.SGiopServer), (protocol=TCP)
mts_servers integer 1
And in TNSnames.ora file the setting should like this:
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = wangsvr)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = wangsvr)(PORT = 2481))
All these two settings ( init.ora and tnsnames.ora ) can be done with "Database Configuration Assistant" and "Net8 Assistant"
I solved my problem this way, your problem may not the same but anyway you may try it.
null -
I just started learning ASP.NET through a book, and it asks to connect to "your" SQL server and explore a .mdf file. I've been trying to install SQL, but I only just now got a working installation, and even then it won't let me install the Management
Software. Whenever I try to connect, I get this error: http://puu.sh/7F2JY.png
This is exactly what I do to connect:
1) Open project
2) Navigate to the Server Explorer
3) Click on connect to database
4) In this menu, I can see me Machine name on the top part, which I think means that it's picking up my server runningh
5) On the bottom, it wants me to enter a database name. I think this may be my problem, as I have no idea what to do here.
Also, when I double click on the database file, I get this errpr (52): http://puu.sh/7F2Yw.png
I really don't know what to do here, so post any tips down belowHi,
Did you choose the correct Server name? It should be the machine name where you installed SQL Server on.
Is it empty when you open select or enter database name drop box in the Add connect dialog box in the Visual Studio 2013?
“Update: I re-installed, and then used both installers. Now I have the Server Management tools, but I still cannot connect.”
The screenshots indicates that the SQL Server is not accessible.
Do you mean that you are not able to connect SQL Server by using SQL Server Management Studio?
If so, make sure that SQL Server Services is started.
Please check out the following articles for details:
How to: Start an Instance of SQL Server (SQL Server Configuration Manager)
http://technet.microsoft.com/en-us/library/ms190699(v=sql.105).aspx
Connect to Any SQL Server Component from SQL Server Management Studio
http://technet.microsoft.com/en-us/library/ms173871.aspx
Thanks.
Tracy Cai
TechNet Community Support -
Cannot connect to oracle 10g xe
Hi All,
I have installed oracle 10g XE but not able to connect to the db with the password I have provided during installatioin the below err I am getting kindly help
Enter user-name: sys
Enter password:
ERROR:
ORA-03113: end-of-file on communication channel
Enter user-name: system@XE
Enter password:
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor
SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*PlusThanks all I executed all the steps but still I am getting this error
my version is oracle 10g express edition
OS is windows xp
C:\>lsnrctl services
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 16-NOV-2007 14:52
:44
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 2: No such file or directory
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=aak.com)(PORT=1521)))
The listener supports no services
The command completed successfully
Enter user-name: sys@xe as sysdba
Enter password:
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor
Enter user-name:
Message was edited by:
460425 -
Can't Connect to SMP 3.0 server from Client
Hello All , I am trying to connect SMP 3.0 server but i am getting error like Requesting Public Key from Server Communications error (14) Connection failed Ending transmission and i also checked with url as per my knowledge its working fine because i am getting message like I am here . I am using below Url . https://Kunal-jit:8082/MobileNorthwind Message : I am here But i think might be SSL certificate issue because its running with red cross. Can you guide ? how to solve ? Thanks & Regards, Kunal Varaiya
Tags edited by: Michael ApplebyHello Bill ,
SMP Server logs for agentry is below :
15:45:06 06/06/2014: Starting Agentry (64-bit Windows) 15:45:06 06/06/2014: Reading system ini file. 15:45:06 06/06/2014: Starting log file. 15:45:06 06/06/2014: Loading message groups. 15:45:06 06/06/2014: Starting threads. 15:45:06 06/06/2014: 1 initial threads. Threads will auto-scale. 15:45:06 06/06/2014: Event: 0, 2, Loading the Agentry Runtime's public/private key for password exchanges. 15:45:07 06/06/2014: Event: 0, 2, Key pair loaded successfully. 15:45:07 06/06/2014: Starting Agentry: Agentry Server Agent v7.0.3.159 15:45:07 06/06/2014: Event: 0, 2, Agentry Startup 15:45:07 06/06/2014: Loading 0 front ends 15:45:07 06/06/2014: Loading front end from angelvine 15:45:07 06/06/2014: WebSockets Front End: loading configuration 15:45:07 06/06/2014: Event: 17, 14, WebSockets Front End v7.0.3.159 15:45:07 06/06/2014: Starting Agentry Server Agent 15:45:07 06/06/2014: Agentry Server Agent: Starting threads. 15:45:07 06/06/2014: 1 initial threads. Threads will auto-scale. 15:45:07 06/06/2014: Agentry Server Agent: Adding messages. 15:45:07 06/06/2014: Event: 1, 4, Agentry Server Agent v7.0.3.159 15:45:07 06/06/2014: Loading agent from ag3.dll 15:45:07 06/06/2014: Starting Server 15:45:07 06/06/2014: Server: reading config file 15:45:08 06/06/2014: Event: 20, 150, Loading Development application definitions 15:45:14 06/06/2014: Initializing SQL-Northwind from ag3sqlbe.dll 15:45:14 06/06/2014: Northwind Back End: reading config information. 15:45:14 06/06/2014: Northwind: name set to 'SQL Back End'. 15:45:14 06/06/2014: SQL Back End Back End: reading query config information. 15:45:14 06/06/2014: SQL Back End Back End: initialized 15:45:14 06/06/2014: Event: 21, 4, Loaded SQL Back End (SQL v7.0.3.159) from ag3sqlbe.dll 15:45:14 06/06/2014: SQL Back End Back End: connecting 'sa' to database 'Northwind' 15:45:16 06/06/2014: Event: 21, 101, dB Connect 15:45:16 06/06/2014: SQL Back End Back End: started 15:45:16 06/06/2014: Event: 20, 152, Loading Development application definitions for default localization 15:45:16 06/06/2014: Event: 20, 153, Finished loading Development application definitions for default localization 15:45:16 06/06/2014: Event: 20, 151, Finished loading Development application definitions 15:45:16 06/06/2014: Server: Starting threads. 15:45:16 06/06/2014: 1 initial threads. Threads will auto-scale. 15:45:16 06/06/2014: Event: 20, 4, Server v7.0.3.159 15:45:16 06/06/2014: Starting front ends 15:45:16 06/06/2014: WebSockets Front End: Opening WebSockets servlet for sub-URL /MobileNorthwind 15:45:16 06/06/2014: Event: 17, 10, WebSockets Front End v7.0.3.159 15:45:16 06/06/2014: Event: 0, 0, Old log files moved into C:\SAP_SMP\DevSMPServer\Server\log\agentry\rolled\2014-06-06-154506 15:45:16 06/06/2014: Event: 0, 23, Agentry startup is complete.
So based on logs it looks good . but when i try to run URL : https://Kunal-Jit:8081/MobileNorthwind I am getting SSL Connection error (I also followed steps provided by last post). ATE : Communication error 14
Can you please guide ? How to solve ?
Thanks & Regards, Kunal Varaiya -
Can not connect Oracle 10g express edition from report builder.
I have newly installed report builder . Different home was selected for Report builder and oracle. Oracle database server is also in the same machine. But i am not able to connect my oracle 10g express edition database. It throws error ORA-12154 : TNS could not resolve service name.( same error displayed while trying to connect from SQL Plus).But from toad i am able to access the database. May be because here I am able to select the proper home.
Here i am adding my tns entry
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 1ECA66A679AB494)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
can any one suggest what the actual problem is?
Thanks ..........Hello,
Oracle 10g XE is rather specific and, I'm not sure that you can upgrade it to 10.2.0.4 .
However, Oracle published an Upgrade Guide for Oracle Express Edition but, it's limited to *10.2.0.3*:
http://download.oracle.com/docs/cd/B25329_01/doc/server.102/b32391/toc.htm
But be careful:
Once you have upgraded to Oracle Database 10g, you cannot downgrade back to Oracle Database Express Edition.Hope this help.
Best regards,
Jean-Valentin
Edited by: Lubiez Jean-Valentin on May 22, 2010 12:06 AM -
I cannot connect to my outgoing email server on my macBook pro, yet I can, for the same email account on my iPad. Also I can send emails from the other email account I have on my MacBook...really confused can anyone help?
Sometimes deleting the account and then re-creating it can solve this issue
Write down all the information in accounts before doing this
Highlight the account on the left and click the minus button
Then click the plus button to add the new account and follow the prompts -
I have a Mac on my home network and also a Systemline music server on same network. My PC was able to find the server but my MAC cannot. I can ping the server from the mac, but cannot actually connect . Also can't add the mac as a location from server, despite following the Systemline instructions that impy this can be done.
Can anyone please advise what I am doing wrong?Hi LowLuster
Thanks for reply. I am not an expert on these sharing protocols but I think I have turned on SMB sharing but still wont connect. I tried adding netwrik drive by using cntrl K in finder and using smb\\network address but nothing. It is driving me mad!! -
ODBC Error while Siebel Server try to connect to Oracle 10G
We have managed to get through with the configuration of siebel server on HP Unix. However before we get to the Database configuration, we are encountering errors with ODBC connection to oracle 10g database. We are able to connect to oracle using sql plus but odbc connection is failing. We verified for patches, missing files, directory access rights - but no clue as of now.
Our error says:
Logging into "ENTSIA_DEV_DAN" as "sadmin"....
/user/lib/hpux32/dld.so: Unable to find library 'libclntsh.so'.
ODBC error IM0003 in SQLConnect:
(DataDirect){ODBC lib} specified driver could not be loaded
Unable to login using specified odbc parameters
This has become a show stopped for us and we are strugging with this for the past three days without much direction.
Any help is greatly appreciated.
Thanks.Hi,
I guess your DataDirect Driver which gets registered during Database Configuration has some problems.
Can you check whether the DSN is using the proper Driver?
Also, the username through which you are logging in to start Siebel Services must have proper rights.
Many times on Windows platform i have noticied this error in ODBC due to improper user rights. If the rights are not proper, the DataDirect Driver fails to get loaded & throws similar error.
Regards,
Shalabhsneha -
SQL 2008 Problem Calling an SP on an Oracle 10G Linked Server
Hi everyone
I've read through a number of posts on many sites about this issue but haven't found anything that has helped me so far. The machine I'm using is running Microsoft SQL Server 2008 64bit and the linked server I've created to Oracle 10G is using OraOLEDB.Oracle. If I test the connection in SQL Management Studio it succeeds and for any queries I have using OpenQuery to select from the Oracle DB I have no problem getting results.
The Oracle 32bit client and 64bit client versions are installed on the machine.
My problem is that I need to exec an Oracle SP which in turn inserts into various Oracle tables. I previously had this all working fine on 32bit SQL Server 2000 installation connected to Oracle 10G. Using the same code in SQL Server 2008 I get the following error:
Msg 7357, Level 16, State 2, Line 1
Cannot process the object "{CALL INTF.INTF_TW_PO_REQ_INTERFACE.MAIN(NULL, 15.000000, 0.000000, 'BLPO0099998', 'BLPO0099998', '', '', 39804, 21883, 'BLPO0099998', 249, 1, 950, 'Main', 190506, 37336, '1', TO_DATE( '20090706','YYYYMMDD' ), TO_DATE( '20090706','YYYYMMDD' ), 'INCOMPLETE',37336, {RESULTSET 1, P_Success})}". The OLE DB provider "OraOLEDB.Oracle" for linked server "ORACLE" indicates that either the object has no columns or the current user does not have permissions on that object
The call is made by the following piece of code in SQL:
SET @execCmd = N'SELECT
P_Success
FROM
OPENQUERY( ORACLE, '''+ @oracleCmd + ''')';
EXECUTE (@execCmd);
Where @oracleCmd = {CALL INTF.INTF_TW_PO_REQ_INTERFACE.MAIN(NULL, 15.000000, 0.000000, ''BLPO0099998'', ''BLPO0099998'', '''', '''', 39804, 21883, ''BLPO0099998'', 249, 1, 950, ''Main'', 190506, 37336, ''1'', TO_DATE( ''20090706'',''YYYYMMDD'' ), TO_DATE( ''20090706'',''YYYYMMDD'' ), ''INCOMPLETE'',37336, {RESULTSET 1, P_Success})}
I also tried using the below snippet from another post I found and got no joy either.
declare @result varchar(255)
exec ('BEGIN
?:= your_SP_Name(''arg1'', ''arg2'', etc);
END;
',@result OUTPUT) at your_LinkedServerName;
select @result;
OLE DB provider "OraOLEDB.Oracle" for linked server "ORACLE" returned message "ORA-06550: line 3, column 7:
PLS-00222: no function with name 'INTF_TW_PO_REQ_INTERFACE' exists in this scope
ORA-06550: line 3, column 1:
PL/SQL: Statement ignored".
I can't figure out why it doesn't work in SQL 2008 when it worked fine in SQL 2000 - PLEASE HELP!
Thank you
Alida HopeWhy development on 10g and production on 8i? Either both should be 8i or both should be 10g.
If you will keep production on 8i and development on 10g then you cannot stop such errors as there are features that are enabled by default in 10g and both the versions have very big differences.
Just go ahead and install 8i. -
ERROR: Install cannot verify the oracle 10g Database
I just completed installation of the SES 10.1.8.2 version and am now trying to apply the 10.1.8.4 Service Pack. After the OUI screen asks for my sys password, I click on Next and receive a popup error message that reads,
Install cannot verify the oracle 10g Database. Please ensure that the database and its listener are running and please verify that the information you entered is correct.
The installer log file (installActions2010-04-15_08-56-19PM.log) shows this:
*** Specify the SYS Password Page***
Calling Query EmQueries4.2.2 checkUserExists
schemaName = SYS
schemaPassword = Protected value, not to be logged
connectString = (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=HostNodeName_1)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=Ses01.HostNodeName_1)))
userName = EQSYS
Query Returned: ERROR:Exception occured while connecting to database. Please check the connection details of the database you specified and retry.
Io exception: Got minus one from a read call
Error:*** Alert: Install cannot verify the Oracle10g Database. Please ensure that the database and its listener are running and please verify that the information you entered is correct. ***
User Selected: Yes/OK
===
I've verified that I can login as EQSYS using sqlplus. Also tested that I can login as sys, too. I've also tested the login using the Admin console and that is fine, too.
Any ideas on what is causing this or how to fix it is most welcome as I've not encountered this error before when installing SES or a service pack. I've even tried the OUI for Service pack 10.1.8.3 but also get the same error.
I've checked the listener.ora and tnsnames and they are OK. I've checked and the listener is running and so is the DB.
Right now, I have the Oracle SES instance up and running at 10.1.8.2 but need to upgrade this to the same level as the other SES search nodes.
Edited by: user8655787 on Apr 15, 2010 2:18 PM
My listener.log file is showing this message each time, I run the OUI and enter the sys password and click "Next"
15-APR-2010 23:17:05 * 12502
TNS-12502: TNS:listener received no CONNECT_DATA from clientA couple of other things that I have tried but have had no affect. I'm still getting the same error:
1. Tried recreating the orapwd file
orapwd file=orapwprdses01 password=prdses01
And make sure that the pfile or spfile has:
remote_login_passwordfile='EXCLUSIVE'
another OTN posting said to try this:
1. Go to directory $ORACLE_HOME/network/admin
2. Modify sqlnet.ora file with following parameter:
tcp.validnode_checking = no
3. If you don't want to disable this, you can put the machine names as follows:
tcp.invited_nodes=(machine1, machine2)
3. Bounce the listener.
.... but, I'm still getting the same error when trying to run the .runInstaller OUI for the service pack for 10.1.8.4. -
Can't Create the ODBC connection for Oracle 10g
Hi,
I am working with Oracle 10g Database Release 2 in windows XP professional. I am trying to create an ODBC connection for oracle but become failure because its generating the following errors:
system error code 998
could not locate the setup or translator library
Please help me how can I solve this problem and create the ODBC connection for oracle 10g database.
Best Regards,mwz wrote:
I am trying to create an ODBC connection for oracle but become failure because its generating the following errors:
system error code 998
could not locate the setup or translator libraryThe symptom described is typical of an incorrect system env PATH setting (used by the data source admin tool), compared to that of the Oracle Home (specifically, path $OH/bin). The odbc driver config routine will search directories listed in PATH variable for necessary libraries (Client dll's). If some library fails to load (from e.g. oraoci*.dll or oraclient10.dll) it will probably error out, as in your case.
Are you creating the odbc dsn on the databse server host or on some other machine? I.e. are you using the db host as a client or not? -
Problem to connect between Oracle 10g xe and VB2010 at Vista sp2
Introduction
Hi guys, good day... NEED RESCUE!! SOS!! Hmm.. i have trouble been 1 weeks trying connect between Oracle 10g xe and VB2010 on window vista sp2. Actaully im very new at Oracle 10g xe and VB2010 but i got a project is going to build up system database and i figure out Oracle 10g xe and VB2010 can use free so i just chows these appication to be my project. I been search around internet and there is several things i was found about the connection but i has try and tried still it wont work out.
Things i found and learned
Oracle
1. I have download Oracle 10g XE and installed in my windows vista sp2.
2. I notice the Oracle Developer Tools is needed for VB2010 (To add reference 'Oracle.DataAccess'). So i was downloaded ODT11beta and installed
3. I also edit TNSNAMES to following below:
OraDb =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = shin-PC)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
4. My sqlnet like following below:
SQLNET.AUTHENTICATION_SERVICES = (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
5.I have try tnsping OraDB and its works.
6. I monitoring task manager and OracleServicesXE is running.
7. ora_dba is added in Group.
Problem in SQLPLUS
When i try connect SQLPLUS in cmd i get ERROR: ORA-12560: TNS:protocol adapter error.
i . In cmd i type sqlplus and enter then i been ask for username and password.
ii. After i insert my username and password and enter then i get the error of ORA-12560.
Visual Basic 2010
1. First i created my project, drawing label and button for test connection.
2. Then, i add reference Oracle.DataAccess into my project.
3. I type following script into my vb form:
Imports System.Data
Imports Oracle.DataAccess.Client
Imports Oracle.DataAccess.Types
Public Class Logon
Private Sub cmdLogon_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdLogon.Click
Dim oradb As String = "Data Source = OraDb; User Id = system; Password = shin;"
Dim conn As New OracleConnection(oradb)
conn.Open()
Dim cmd As New OracleCommand
cmd.Connection = conn
cmd.CommandText = "select SName from Staff where SName = shin"
cmd.CommandType = CommandType.Text
Dim dr As OracleDataReader = cmd.ExecuteReader()
dr.Read()
lblOra.Text = dr.Item("SName")
conn.Dispose()
End Sub
End Class
Problem in VB2010
When i run my project and press the button i get error message ORA-12514: TNS:could not resolve the connect identifier specified at conn.Open()
Extra Question*
1. Im notice in my netbook xp home sp2, before i install ODT11beta my sqlplus look fine thought cmd but after i installed ODT11beta its same problem with my Vista sp2 now. Get error ORA-12560: TNS:protocol adapter error :( I tried uninstall ODT11beta again and restart its work fine again. Which i really dun understand. Izzit the version ODT11 is not suitable for 10g xe? And i dunno this problem is related with my connection between oracle 10g xe and vb2010 or not. So confuse@@
2. I wish to know more about connect between Oracle and VB, is there still a things i miss?(I mean steps or configuration that should i done)
3. Or i just lower my VB version could make more easy? If yes, what version VB should i use that could work out with oracle 10g xe?
4. Sorry for too bad my english but i really wish somebody could help me. Please try to understand my written or you could ask me mean if dont understand. Im stuck!! Stuck feel not really that good.....
Edited by: user9173084 on Jul 19, 2010 3:34 AMHuhu..
Yo, henry
I thought the OraDb is just a name for entry but im not sure it is a service. I was refer http://www.oracle.com/technology/pub/articles/cook-vs08.html at topic Connection Strings and Objects.
Here is my lsnrctl service
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOW has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOW has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "XEXDB" has 1 instance(s).
Instance "xe", status READY has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 state:ready
DISPATCHER <machine: SHIN-PC, pid: 1932>
(ADDRESS=(PROTOCOL=tcp)(HOST=shin-pc)(PORT=49158))
Service "XE_XPT" has 1 instance(s).
Instance "xe", status READY has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "xe" has 1 instance(s).
Instance "xe", status READY has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
The command completed successfully
Izzit ok? I notice there is no listed OraDb. but tnsping OraDb seem fine.
Actually there is somethings as a newbie i wondering long time alreadly ><
1. The origin of tnsname.ora is no OraDb or ORCL but i just simple add it by open tnsname.ora with notepad. Im just not sure it is function or not.
Also please check at my TNSNAME.ORA:
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = shin-PC)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
OraDb =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = shin-PC)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
I got the feeling there is so close~~~!!! -
Auditing in oracle 10g database and oracle 10g application server
Dear friends,
We have oracle 10g application server and oracle 10g database server in place.My criteria is to audit users connected using oracle application user credentials to the database.
Can you please tell me how can i do it.
Thanks & regards,Its the database connection you want to track. The session audit will show where it came from.
Auditing is turned using this command:
alter system set audit_trail = DB scope=spfile;
Note: The use of spfile will require a DB bounce before audit starts
To audit Sessions:
audit create session;
Query by Audit Type:
SELECT A.USERNAME,
OS_USERNAME,
A.TIMESTAMP,
A.RETURNCODE,
TERMINAL,
USERHOST
FROM DBA_AUDIT_SESSION A
WHERE USERHOST = <replace with iAS servername> ;
By User
SELECT USERNAME,OBJ_NAME,ACTION_NAME , TIMESTAMP
FROM DBA_AUDIT_TRAIL WHERE USERNAME = 'SCOTT';
Check for users sharing database accounts
select count(distinct(terminal)),username
from dba_audit_session
having count(distinct(terminal))>1
group by username;
Attempts to access the database at unusual hours
SELECT username, terminal, action_name, returncode,
TO_CHAR (TIMESTAMP, 'DD-MON-YYYY HH24:MI:SS'),
TO_CHAR (logoff_time, 'DD-MON-YYYY HH24:MI:SS')
FROM dba_audit_session
WHERE TO_DATE (TO_CHAR (TIMESTAMP, 'HH24:MI:SS'), 'HH24:MI:SS') <
TO_DATE ('08:00:00', 'HH24:MI:SS')
OR TO_DATE (TO_CHAR (TIMESTAMP, 'HH24:MI:SS'), 'HH24:MI:SS') >
TO_DATE ('19:30:00', 'HH24:MI:SS');
Attempts to access the database with non-existent users
SELECT username, terminal, TO_CHAR (TIMESTAMP, 'DD-MON-YYYY HH24:MI:SS')
FROM dba_audit_session
WHERE returncode <> 0
AND NOT EXISTS (SELECT 'x'
FROM dba_users
WHERE dba_users.username = dba_audit_session.username);
Other audits you might consider:
audit grant any object privilege;
audit alter user;
audit create user;
audit drop user;
audit drop tablespace;
audit grant any role;
audit grant any privilege;
audit alter system;
audit alter session;
audit delete on AUD$ by access;
audit insert on AUD$ by access;
audit update on AUD$ by access;
audit delete table;
audit create tablespace;
audit alter database;
audit create role;
audit create table;
audit alter any procedure;
audit create view;
audit drop any procedure;
audit drop profile;
audit alter profile;
audit alter any table;
audit create public database link;
Best Regards
mseberg -
DUPLICATE DB : ORA-17629: Cannot connect to the remote database server
[oracle@ora11g1 ~]$ export ORACLE_SID=sales
[oracle@ora11g1 ~]$ rman target sys/sales@sales
Recovery Manager: Release 11.2.0.1.0 - Production on Wed Jun 5 13:00:15 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: SALES (DBID=690066655)
RMAN> connect auxiliary sys/salestby2@salestby2
connected to auxiliary database: SALES (not mounted)
RMAN> DUPLICATE TARGET DATABASE FOR STANDBY FROM ACTIVE DATABASE SPFILE
2> SET DB_NAME= 'sales'
3> SET DB_UNIQUE_NAME= 'salestby2'
4> SET control_files='/u02/oradata/salestby2/control01.ctl','/u02/oradata/salestby2/control02.ctl'
5> SET DB_FILE_NAME_CONVERT='/u02/oradata/sales/','/u02/oradata/salestby2/'
6> SET LOG_FILE_NAME_CONVERT='/u02/oradata/sales/','/u02/oradata/salestby2/';
Starting Duplicate Db at 05-JUN-13
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=20 device type=DISK
contents of Memory Script:
backup as copy reuse
targetfile '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/orapwsales' auxiliary format
'/u01/app/oracle/product/11.2.0/dbhome_1/dbs/orapwsalestby2' targetfile
'/u01/app/oracle/product/11.2.0/dbhome_1/dbs/spfilesales.ora' auxiliary format
'/u01/app/oracle/product/11.2.0/dbhome_1/dbs/spfilesalestby2.ora' ;
sql clone "alter system set spfile= ''/u01/app/oracle/product/11.2.0/dbhome_1/dbs/spfilesalestby2.ora''";
executing Memory Script
Starting backup at 05-JUN-13
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=58 device type=DISK
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 06/05/2013 13:05:26
ORA-17629: Cannot connect to the remote database server
ORA-17627: ORA-01017: invalid username/password; logon denied
ORA-17629: Cannot connect to the remote database server
continuing other job steps, job failed will not be re-run
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 06/05/2013 13:05:27
RMAN-03015: error occurred in stored script Memory Script
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 06/05/2013 13:05:27
ORA-17629: Cannot connect to the remote database server
ORA-17627: ORA-01017: invalid username/password; logon denied
ORA-17629: Cannot connect to the remote database serverWelcome to the oracle forums!
Please take some time to go through [url https://forums.oracle.com/forums/ann.jspa?annID=1535]FAQ PAGE
Always post 4 digit oracle version and OS details.
Post any query out put between \ \ tags
Mark your questions as answered if you get the answer
Password of SYS user on primary and standby must be same.Copy the password file from primary to standby server
scp $ORACLE_HOME/dbs/orapwv112 <oracle_user@auxiliary_host>:/u01/app/oracle/product/11.2/dbs/orapwdupv112
Maybe you are looking for
-
I have exceeded creating Free Apple ID account on my device
Upon activation of my ipod touch 4 last year, i have several errors encountered in creating my apple ID account. As I remember, I have created 3 accounts without verifications. Today, I was about to create another one because I will be using my activ
-
A search of the Library bookmarks should provide each bookmark's folder as well as Name, Tags, and Location. As it is now, a search (for example) for the string 'IESI', a refuse collection company in Central Texas, actually finds IESI. But what if yo
-
CS order operation: CATSD-VORNR what table stores this info?
Hi all, we are trying to use CS operation level information entered in CATS to create printouts and other reporting. there are two factors: - we use in CATS for CS also other units (e.g. KM and CUR) than time dimension --> not shown in CS (AFRU) - KO
-
Scatter Chart and Distinct Legends
Hello, Was trying to make a quadrant style graph and plot 78 locations on this. I've successfully done that but I'm seeing the points are re using the same colors. Is there a way to ensure each point uses a disctinct color? I wouldn't even mind if
-
Hey, My laptop has dies and I have now installed itunes on a new laptop, but only the recent purchased songs are in the library unfortunately. How can I download my entire library and de-authorize my broken laptop, please? Thanks