Oracle 10G
Is it possible to get a list of all Client Programs that have connected to my Oracle Database Historically.
I can always get the current list of active sessions using V$SESSION but is there somewhere that historical connection information is recorded? I need this to know who all are using a particular database user for connecting to the database.
You will find some information in the listener.log (executable, osuser)
As far as I know, audit trail is the only way to list connection history. If audit trail isn't enabled you are left with the listener.log and v$session.
Bjarte
Related
A user has been configured on Oracle. Via this user, I can create an ODBC connection and an OCI connection, and these both test fine in Win10. Using Alteryx with the ODBC and OCI connection, we try to write data to a new table.
The table is created and appears in PL/SQL with the expected column names. However, the rows are never written and the connection just hangs at this point.
What could be wrong? I am not an Oracle Admin
Based on comments you were expecting oracle to commit without executing "commit" command explicitly. It's not enabled by default in oracle so you have to turn it on.
It's not possible to turn this on for the database, but on client apps only.
E.g. "set autocommit on" command in SQL Plus.
So you need to check docs for the client application you're connected with (presumably Alteryx is the one). It might have such a feature.
We have a custom inventory system, for tracking all of our database, including Oracle v12 and v19 based databases. But as our DBA team has work with Container Databases (CDB), we need to identify, which one is a standalone or container, but we don't have any option to connection to the, due to our security policy.
Is there any way to Identify oracle Container Databases (CDB), without connecting to them?
As after reviewing Oracle official documentation: https://docs.oracle.com/database/121/ADMIN/cdb_mon.htm#ADMIN14174.
It seems that it's not possible, as the documented clearly mentioning, that first, it's necessary to connect to the database, and only then to run the following command: SELECT CDB FROM V$DATABASE;
And if the CDB column returns YES, the current database is a CDB. and NO, if the current database is a non-CDB.
Every time I create a new connection under the same common user on the SQL Developer tool it automatically copies the table(s) of the previous connection.
I am using Oracle Database 19c on the SQL developer tool.
In the below picture, there is a table having 2 columns.
In the below image, I have created a new connection, but it already has the previous tables.
troubleshooting steps I have followed so far -:
disconnected the previous connection: not solved
deleted the previous tables & connection: not solved
restarted SQL developer tool: not solved
deleted user and created again: this works but can't do it every time.
I have created a table using steps on this website: sqlserverguides
Please Advise :-)
The answer to your question here is that you are not doing what you think you are doing.
The objects newfirm and newtable are not tables, these are connections.
A connection needs a username and a password, a hostname to connect to, a port number, and a service name (or SID).
Once you are connected to a database server, all the "folders" you see under that connection are all related to the user used for the connection.
If you want to look at other users (be it sys or service users, or "people"), then you need to go to the folder "other users" in the same tree.
The screenshots you are showing there in your question only show 2 distinct connections (we don't know if the same details such as username + hostname were used) each with their own label/name (newfirm and newtable).
You can't "disconnect" a table, you also can't delete it .. you can drop it however which is likely what you meant.
In your screenshots, what you are pointing at and calling columns are actually tables.
Those things that you are pointing at and calling "previous table" and "new table" are not tables but connections (to a database server using a specific username).
You do not show any code you may be using, which would be useful.
If you want to drop a table (i.e. delete), you use the DROP command:
DROP TABLE user.tablename;
It is not possible for 2 tables with the same name to exist in the same schema (aka user).
currently, we are using oracle 8i and we are working to decommisson it.
I need to find out which all other databases are connecting to our database using db link.
Please note, I am not looking for the connection from our database to others database. I already got that information using all_Db_links.
If you audit connections to the database or look at the listener log, that will tell you the machines that are connecting to the database and the application that is connecting (that information is coming from the client so it could be spoofed but I'm assuming no one is actively trying to hide information from you). That should allow you to determine which connections are coming via database links. That may not tell you which database on the particular server is connecting if there are multiple databases on the same server using the same Oracle Home. But it should narrow it down to a relatively small number of databases that you can manually check.
I am using Oracle 11g.
I am looking for a good explanation of Oracle Sessions. I googled for this, but strangely, none of the web sites contain any explanation of what oracles sessions are. My specific questions are
1) What are oracle sessions?
2) Does one connection object always relate to one oracle session.?
3) can one oracle session be shared by another connection started by the same user.?
A logical entity in the database instance memory that represents the state of a current user login to a database.
A single connection can have 0, 1, or more sessions established on it.
I can't imagine that it can
http://docs.oracle.com/cd/E28271_01/server.1111/e25789/glossary.htm