Which database we are connected

Any body suggest me how to find which database we are currently connected in it (without querying v$database view) user have only the connect and resource role privs
Thanx,
Vel

SQL*Plus is just resolving the "show parameter" command to query the appropriate data dictionary table. Low-privilege users cannot execute that command
system@jcave > create user foo identified by foo;
User created.
Elapsed: 00:00:00.02
system@jcave > grant connect, resource to foo;
Grant succeeded.
Elapsed: 00:00:00.01
system@jcave > @connect foo/foo
Connected.
foo> show parameter instance_name;
ORA-00942: table or view does not existIs it possible for the original poster either to grant the user in question SELECT access to the v$database table or to create a stored procedure that returns the instance name and grant the user EXECUTE access to that?
Justin
Distributed Database Consulting, Inc.
www.ddbcinc.com/askDDBC

Similar Messages

  • How to find out which database I'm connected to

    I need to use a pl/sql to determine which database I'm connected to. I'm not using forms so I cannot use a built-in. I need to know for a report I'm building, as the display differs based on the database.
    Thanks

    In order to consult V$... views a user must have a special role (SELECT_CATALOG_ROLE). This permit to the user to access also all DBA_... views. Such things could not be desired for security.

  • HT1918 I cannot access files I uploaded from an old computer.  The email account to which some tracks are connected is deleted. For some reason my birth date doesn't work either. Is there some way to transfer the files to my current address?

    I cannot access files I uploaded from an old computer. The email account to which some tracks are connected is deleted. For some reason my birth date doesn't work either. Is there some way to transfer the files to my current address and username?

    Most likely you have Office 2004 which are PPC-only applications and will not work in Lion. Upgrade to Office 2011. Other alternatives are:
    Apple's iWork suite (Pages, Numbers, and Keynote.)
    Open Office (Office 2007-like suite compatible with OS X.)
    NeoOffice (similar to Open Office.)
    LibreOffice (a new direction for the Open Office suite.)

  • How to determine Which Database I am Connected to?

    hi everyone,
    10g
    I'm going to drop a database via SQL Plus.
    I forgot the command that will show which db I'm connected to. Dont want to delete the wrong database!
    Thanks, John

    Personally I prefer to use: select name from v$database
    to verify what database I am connected to if there is any doubt.
    With 10g it is possible to set the sqlpromt to your database name and have it maintained even if you issue a connect statement to another database.
    HTH -- Mark D Powell --

  • How to identify which application users are connected to in an rdp session

    so we have an rdp gateway with couple of servers acting as brokers. users connect to the RD web access site and see a list of applications. usually these applications are the same but with different parameters like (done through the RemoteApp manager)
    app1: C:\Program Files\app.exe arg: C:\appdata\group1\file
    app2: C:\Program Files\app.exe arg: C:\appdata\group2\file
    i'm trying to find a way to tell which app the users are connecting to at a point with no luck, any help will be appreciated
    Noor

    Hi Noor,
    Thank you for posting in Windows Server Forum.
    From your description I can understand that you want the user name with app they have in their session.
    You can achieve with below command.
    Query process User name
    Displays information about processes running on a terminal server. You can use this command to find out which programs a specific user is running, and also which users are running a specific program.
    More information:
    Query process
    http://technet.microsoft.com/en-us/library/bb490798.aspx
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • How can you tell which cabinet you are connected t...

    As the title says, how can you tell once installed.
    the reason i ask is where i live there is only the bt-pcp and the drl-fttc cabinet and no others.
    from what i heard is that both BT and DRL occupy the same fttc cabinet, and this would suggest so based on other information received.
    yet from other information i'm hearing is that they don't and we're probably wired all the way back to the exchange which i would have thought was a bit odd seeing with 3 miles from exchange (as the crow flies).
    so is it possible that they use the same cabs?

    hi,
    yeh am on infinity now and so far working fine
    had one disconnection but thing that was caused by outage as took router a few attempts to re-connect, but other than that my pppoe has only dropped when made a change on router which required it to restart.
    now been connected for 8 days without dropping (usually dropped every weekend when on DR) so continuing to monitor.
    the engineer advised was connected via the cabinet in street, but only cabinets are the bt-pcp and the dr-fttc cabinets, and AFAIK BT and DR share the cabinet from what I've been previously told, but then someone else has said they won't do that and the connection is probably one that is underground if there is no bt-pcp.
    i'll send Dean a message just so i know for future as i know the bt-pcp cabinet my number is connected too.

  • How oracle applications knows to which database it should connect

    Hi gurus....
    as far as i know it is dbc file whch helps oracle apps to connect to database and FND_NODES table
    but is there anything apart from these two....

    Please check atul blog it good artical
    http://becomeappsdba.blogspot.com/2006/08/oracle-applications-request-flow.html
    as far i know this only two methods APPS MT use to connect Database.

  • Which databases like oracle  are available to connect to java in eclipseide

    which databases like oracle are available to connect to java in eclipse ide

    ANY DATABASE WHICH HAS A JDBC DRIVER CAN BE CONNECTED THROUGH YOUR CODE. ECLIPSE HAS NOTHING TO DO WITH CONNECTING DATABASES.

  • Connect to DataBase programmatically with Integrated Security in SharePoint - which account credentials are used?

    Hi to All!
    I have a simple question. I connect to DataBase programmatically, using SqlConnection and Integrated Security in connection string. It works! But I cannot understand -  which account credentials are used? My Windows account(under which I was logged
    in) or NetworkService Account, or something else?
    If I was logged in as FBA user in SharePoint - what in this case?

    Hi MaryBath,
    When you use integrated security = true it means the same as integrated security = SSPI and in this case the current Windows account credentials are used for authentication and if you set the integrated
    security = false you have to provide UserName and Password . so for your question it uses the current windows account credentials.
    here is the Microsoft link for the same...
    https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.connectionstring(VS.71).aspx
    If your code is executing on server in SharePoint (in webparts or features or application page). it will take the windows account of the server to connect to the database because all are executing on server not on client machine. your
    login credentials has nothing to do with it.
    Note: there are 2 authentication Windows Authentication and SQL Authentication so make sure that on database windows authentication is enabled (it will only work when windows authentication is enabled....
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • In RAC Database All sessions are connecting to Node1 only

    Hi Gurus,
    Oracle RAC 10R2.
    OS: IBM AIX
    We have two node RAC instance. When I checked, all sessions are connecting to NODE1. and node2 is not having any worload.
    can you guys suggected me from where I start troubleshooting.
    Thanks,
    Chinmay

    Hi Chinmay,
    Check for active_instance_count parameter in database.If it's value is 1, database connection will go to only one instance.To check to which instance it will go you can use below query.
    select INSTANCE_NAME,HOST_NAME,INSTANCE_ROLE from gv$instance;
    Instance_role has two value: active instance (=primary instance) or a passive instance (secondary instance).
    Connection will always go to active instance only.
    Regards
    Sushant

  • Database fileds are not coming when connecting with ado and they are coming when connecting with odbc

    Post Author: yagya
    CA Forum: .NET
    Hi , I am using crystal report XI R2 in visual studio 2005 . Backend is sql server 2000. I have made a connection with odbc connectivity and using dsn. I am using a stored procedure as datasource of report. It is working fine all the database fields are available. Now when i try to connect with the ado connection having same stored procedure as datasource of report , I am not getting data fields. I dont know where is the problem in my stored procedure or in report. But when i connect through system dsn using odbc connectivity everything is working fine. A MAP filed dialogue box appears when i try to change the datasource location to ado from odbc.

    There is a barely acknowledged issue. For Mac users Apple has released an update to the app, but for iOS users the recommendation is for users to update their ipad to the most recent operating system.
    There may be a fix coming for iOS6 users (which seem to be many of those having problems) or there may not be. If your ipad isn't up to date then you can update it and see if that helps, or if you don't want to update then you may want to wait and see if there is either a fix or if it fixes itself.

  • I am trying to set up home sharing between my iphone 4s and mac which is running itunes 11. Both are connected to my home wifi network and using the same apple id but on the iphone app it says 'Turn on Home sharing in iTunes on your mac using account ***

    I am trying to set up home sharing between my iphone 4s and mac which is running itunes 11. Both are connected to my home wifi network and using the same apple id but on the iphone app it says 'Turn on Home sharing in iTunes on your computer or apple tv using account ***
    Does anybody have suggestions as to why this is the case?

    Understanding Home Sharing - Support - Apple
    Hope this helps.

  • (Cisco Historical Reporting / HRC ) All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054

    Hi All,
    I am getting an error message "All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054"  when trying to log into HRC (This user has the reporting capabilities) . I checked the log files this is what i found out 
    The log file stated that there were ongoing connections of HRC with the CCX  (I am sure there isn't any active login to HRC)
    || When you tried to login the following error was being displayed because the maximum number of connections were reached for the server .  We can see that a total number of 5 connections have been configured . ||
    1: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:Current number of connections (5) from historical Clients/Scheduler to 'CRA_DATABASE' database exceeded the maximum number of possible connections (5).Check with your administrator about changing this limit on server (wfengine.properties), however this might impact server performance.
    || Below we can see all 5 connections being used up . ||
    2: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:[DB Connections From Clients (count=5)]|[(#1) 'username'='uccxhrc','hostname'='3SK5FS1.ucsfmedicalcenter.org']|[(#2) 'username'='uccxhrc','hostname'='PFS-HHXDGX1.ucsfmedicalcenter.org']|[(#3) 'username'='uccxhrc','hostname'='PFS-HHXDGX1.ucsfmedicalcenter.org']|[(#4) 'username'='uccxhrc','hostname'='PFS-HHXDGX1.ucsfmedicalcenter.org']|[(#5) 'username'='uccxhrc','hostname'='47BMMM1.ucsfmedicalcenter.org']
    || Once the maximum number of connection was reached it threw an error . ||
    3: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:Number of max connection to 'CRA_DATABASE' database was reached! Connection could not be established.
    4: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:Database connection to 'CRA_DATABASE' failed due to (All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054.)
    Current exact UCCX Version 9.0.2.11001-24
    Current CUCM Version 8.6.2.23900-10
    Business impact  Not Critical
    Exact error message  All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054
    What is the OS version of the PC you are running  and is it physical machine or virtual machine that is running the HRC client ..
    OS Version Windows 7 Home Premium  64 bit and it’s a physical machine.
    . The Max DB Connections for Report Client Sessions is set to 5 for each servers (There are two servers). The no of HR Sessions is set to 10.
    I wanted to know if there is a way to find the HRC sessions active now and terminate the one or more or all of that sessions from the server end ? 

    We have had this "PRX5" problem with Exchange 2013 since the RTM version.  We recently applied CU3, and it did not correct the problem.  We have seen this problem on every Exchange 2013 we manage.  They are all installations where all roles
    are installed on the same Windows server, and in our case, they are all Windows virtual machines using Windows 2012 Hyper-V.
    We have tried all the "this fixed it for me" solutions regarding DNS, network cards, host file entries and so forth.  None of those "solutions" made any difference whatsoever.  The occurrence of the temporary error PRX5 seems totally random. 
    About 2 out of 20 incoming mail test by Microsoft Connectivity Analyzer fail with this PRX5 error.
    Most people don't ever notice the issue because remote mail servers retry the connection later.  However, telephone voice mail systems that forward voice message files to email, or other such applications such as your scanner, often don't retry and
    simply fail.  Our phone system actually disables all further attempts to send voice mail to a particular user if the PRX5 error is returned when the email is sent by the phone system.
    Is Microsoft totally oblivious to this problem?
    PRX5 is a serious issue that needs an Exchange team resolution, or at least an acknowledgement that the problem actually does exist and has negative consequences for proper mail flow.
    JSB

  • I have an iphone and an ipad (which are connected by the same apple id) i broke the phone and sold it but i didnt get to factory reset it because it was broken, is there any way for me to wipe my iphone from my ipad?

    i have an iphone and an ipad (which are connected by the same apple id) i broke the phone and sold it but i didnt get to factory reset it because it was broken, is there any way for me to wipe my iphone from my ipad?

    Try this:
    Open the "Find my iPhone" app on your iPad, fill in your AppleID and password at the start up screen, and you should see a list of all your devices and their current location, if connected to a Wi-Fi or mobile data network. Devices not connected will be shown as "offline". But you can still trap on the icon and hit "erase iPhone" in the right hand window.
    If your iPhone is not listed, you did not activate this feature during the setup of the phone and it can't be erased remotely.
    If the phone is listed, even as offline, tap on "erase" to send the erase command. The next time your device will be connected to any kind of network, the content will be erased.

  • I have two children each with an ipod which has FaceTime - I have the iphone 4s with FaceTime.  All of these devices are connected to itunes through the one account.  How do I set up the FaceTime on the two ipods so as it doesn't ring both of them?

    I have two children each with an ipod which has FaceTime - I have the iphone 4s with FaceTime.  All of these devices are connected to itunes through the one account.  How do I set up the FaceTime on the two ipods so as it doesn't ring both of them?

    I started to do that then it said that this will become their apple I.D or similar and then I thought that will disconnect them from the same iTunes?  I want them still on my iTunes as they are only young (8 and 10)?  Or have I got this all wrong and even if I do set them up with a different e-mail will they still be on my itunes?  For example if they want to purchase an App will it still go through my account even if they use their ipod?

Maybe you are looking for