How to know database name and schema name by providing package name?

Hi,
Could someonw will help me to get database name and schema name by providing package name ?
I have used the query : select * from all_objects where object_name='Package_name'; but it simply returns schema name where as i need DB name and username.
--Prajakta

but it simply returns schema name where as i need DB name and username.
i want to retrive the DB name for package name
Based on your questions, I wonder if you are used to working in SQL Server? (The server, database, and schema are part of the 4-part  name of an object, independent of any user.)
In SQL Server, schema and username are two separate physical concepts.  "Schema" is purely logical in Oracle: a user which owns objects is often called a "schema".
In Oracle, "database" is roughly equivalent to the SQL Server concept  "server" (what you log in to).  It is not part of the naming path to a specific object  (unless there is a database link involved, but there is no indication that's what you have here).  In Oracle you connect to an Instance (or Service) and people often call this the "database", but there is a fine semantic distinction there (separate topic). 
Once connected in Oracle, you fully-qualify an object by only a 2-part owner and object name (possibly 3-part if a database link is involved user.object@link).
12c added another wrinkle to all of this, but I'll assume this question was more basic than that, because you likely would have mentioned if this was a 12c question.

Similar Messages

  • How to know database name and schema name

    Hi ,
    Once after logging in the database,how is it possible to know the current database and schema which we r using?Is there any system table where we can get the database names and schema names?
    please help me out.itz urgent.
    Regards,
    Sravan

    Probably not.
    If the database name is the name of the current database, it would be essentially redundant. If the database name is the name of some other database, in order to get the names of all the tables in the specified schema, you could create a database link to the remote system (which assumes you have a login and password to the remote database with appropriate privileges, that the database server's tnsnames.ora file has an entry for the remote database, etc) and query the remote data dictionary tables. Even if you could do that, however, you could not dynamically create triggers on the remote database since DDL over a database link.
    In theory, you could also load an appropriate JDBC driver into the database and write a Java stored procedure that would connect to the remote database (again, with an appropriate user name & password, host name, and port number) and issue DDL against that remote database. I have a hard time believing, however, that this would be a particularly beneficial approach. It would be easier just to put the appropriate code into each database that needs triggers generated or to have a separate Java application that generates triggers for a number of different databases.
    Justin

  • How to know database is using pfile or spfile?????????????

    Hi Guru's
    how to know database is using pfile or spfile?????????????
    THanks

    select decode(count(*), 1, 'spfile', 'pfile' )
    from v$spparameter
    where rownum=1
    and isspecified='TRUE'
    OR
    SELECT DECODE(value, NULL, 'PFILE', 'SPFILE') "Init File Type"
    FROM sys.v_$parameter WHERE name = 'spfile';
    Regards
    Girish Sharma

  • Difference between Database, instance and schema

    Hi
    I don't know the clear difference between database, instance and schema.. In the broad sense, everything seems to be the same. If anyone can differentiate between them with some example, that will be of great help.
    Thank you.

    Hi,
    In Oracle, people often do use "database" and "instance" interchangeably, or together as one term: "database instance".
    A "schema" is quite different. A schema is a collection of objects (such as tables, indexes or procedures). Every object belongs to exactly one schema, and every schema is a part of exactly one database. (Names may not be unique, however. For example, your database may have one schema named SCOTT, and another schema named USER1. Each of those schemas may have a table named EMP. The EMP table in the SCOTT schema, or SCOTT.EMP, is not the same as the EMP table in the USER1 schema, or USER1.EMP. A different database, my database for example, may also have schemas called SCOTT and USER1, which are completely independent of the SCOTT and USER1 in your database.)

  • How to know Sales Organization and distribution channel for a material

    How to know Sales Organization and distribution channel for a created material

    Hi,
    For a single material means u can go mm03 7 select the material number 7 select the sales views then press f4 the details u can see.
    For any number of materials u can go to se11 & give table name MVKE then select the required parameters & execute.
    pandari

  • How to know the balance and validity of internet data in iPad

    How to know the balance and validity of internet data in iPad?

    Sir I m using internet in ipad4 with airtel network
    They provide me 2gb data with the amount of 255 rupees
    And now I inserted the sim in my ipad4
    And start the surfing on safari n all
    And now I wanted to know how much data is balance.

  • How to install database 10g and forms&reports developer 10g?

    hi
    how to install database 10g and forms & reports developer 10g on windows xp 32 bit? and which one is to install first? how to connect them together? where can i find complete guide

    Gul wrote:
    hi
    how to install database 10g and forms & reports developer 10g on windows xp 32 bit? and which one is to install first? how to connect them together? where can i find complete guideThis link will help you http://tahiti.oracle.com/

  • How to find the tablespace name and schema name from a dump file

    Good day to all,
    I recived a dump file from a client with oracle 11g, and I need do get the tablespace and schema name from the dump file. How can I do that?
    Thanks.
    Flávio Melo
    Edited by: 933141 on 09/05/2012 07:41

    user12038066 wrote:
    Use imp utility, it generates DDL for both tables and indexes. So you will get tablespace info for both.
    Use impdp utility, it generates DDL for indexes only. So you will miss tablesapce info for tables.
    Haven't found a workaround for impdp utility. Anyone knows?Are you sure you are using the impdp utility correctly? Because if you do, then sqlfile should have all gory details.

  • How can i see folders and files with a 'Ñ' on his names?

    hi everybody, i'm a newer with MacOS, i've buy a MacBook Pro last Friday on Bogotá - Colombia, last nigth i plugged an external hard disk drive with many folders including a folder called: "Microsoft Office 2011 Español", when i explorer the hard disk i can't see this folder, i rename this folder on my pc on windows 7 and remove the word "Español" after that i was able to see the folder
    i think that it is a configuration of OS, so can anybody help me to fix this problem?

    Halo Mattias,
    i using this function get file file name and directory:
    at selection-screen on value-request for p_file.
      call function 'F4_FILENAME'
        exporting
          program_name  = syst-cprog
          dynpro_number = syst-dynnr
          field_name    = 'P_FILE'
        importing
          file_name     = p_file.
    Rgds,
    Wilibrodus

  • How to know the time and date when someone empty trash?

    someone delete very important videos on my mac PC , i need to know the time and date of what happens on my pc for 2 days ago to can know who delete these files and when the trash being empty
    also, i tried very hard to recovery these videos by using Data rescue program but i found old videos instead of the last videos hasa been removed??? i don't know how???!!
    so can anyone help me please

    Open the Console app located in HD > Applications > Utilities
    Select System Log on the left.
    Type trash in the search fileld top right corner of that window.
    That should reveal the date and name of the file or files that were deleted but they cannot be extracted from there.

  • How to know the printprogram and output type for perticular standard script

    how to know the print program and output type for perticular standard script and wt the proceure we will fallow to modifie the standard script..if possible u have any sample code plz share with me.....

    Hi Phani,
    To know the print program and output type for a standard script we have a table called TNAPR. So just you go to SE11 and provide the table name as TNAPR and choose display option.Then go with display entries option and in selection screen you have to provide the form name for whic you want to know the print program and output type.
    To modify a standard script first of all you have to copy the standard form for which you need modifications into Zform. Once you done this you can modify the layout set as per your requirement.Then what ever the modifications you have done in layout set for that you need to populate the data.For this you also need to do some modifications to the print program.so you have to options like directly you can modify the print program as per your requirement and other one is you can create a subroutine and do coding in that subroutine. Then you need call this subroutine in the Script Form.like this you can do modifications to the standard script........................... Reward me if its helpful..........
    Thanks & Regards.
    Laxman.P
    B'lore.

  • How to know the filename and extension of a file in PKCS7  envelope

    Hi! I've a programm that makes a PKCS7 file. I'm enveloping just one file at a time. I want to know if there is a way to know the filename and extension of the file INSIDE de PKCS7 envelope. Because I receive a file that has .p7 extension, but the real document, the one to be decyprted, I don't know its name nor its extension, and I need both for writing it (I will not just invent some name).
    Best regards!

    The construct of the PKCS7 structure you have, is defined in rfc2633. The part defining EncapsulatedContent is introduced in CMS [rfc2639], where no such attribute for a file name is saved in the structure.
    In some occasions, when it is critical, organizations add own object identifier and attibutes to save such descrptivie information as filename and extension.
    A practical approach is, on the signing side, sign the file A.ext to A-ext.p7m resp. A-ext.p7s
    You can not assume a global approach to get back the original filename (if you have no agreement on not the signing peer as above) of the encapsulated data. The reason is, the encapsulated data field is general and it does not neccesarily mean it was a file (a part of a stream or any definite sequence of bytes in general).

  • How to create Database, table , and apply triiger on oracle10g lite ?

    Hello All,
    I want to use oracle 10g lite , i just download oracle 10g lite from oracle site and just install on my system, i have no any knowledge how to create database, how to create tables and how to apply triggers on tables. I want to access this database using JDBC.
    plzzzzzzzzzzzzzzzzzz help me...............
    Thanks in advance
    Pankaj

    are you trying to use oracle lite just as a database? it is normally used as part of a data synchronisation from a server, replicating snapshots to create the database and tables on the client.
    PL/SQL format triggers are not supported in the oracle lite client. Java stored procedures are, but you would need to build the table interactions

  • Is encrypted user name and password specific to a user name/password

    If I run the essmsh -gk to get the public and private encrypted user name and password, is that resulting encryption specific to my user name and password? My user name and password is set to expire, just curious if the encrypted user name and password is still valid after my username/password expiration
    Thanks

    yes it is specific to the username and password, so if the password changes then you will get an invalid login credentials error message when you run the maxl script.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • What is the list of possible OS names and OS versions, returned by OS name property?

    My application is supposed to work a little bit differently running on different versions of Windows. For now the problem is that the possible strings returned by OS name and OS version (APP reference properties) are not specified in LV help. I've tested it for Win2k and got back "Windows NT" as a name and "5.0" as a version number. What should I expect for Windows ME, Windows 95, Windows XP?
    Appreciate your responses, thanks for everybody who may have a clue of what it should be.

    System
    Version9X
    VersionNT
    WindowsBuild
    ServicePackLevel
    Windows 95 (Gold)
    400
    950
    Windows 95 + OSR
    400
    Windows 95 + OSR2
    400
    Windows 95 + OSR2.5
    400
    1111
    Windows 98 (Gold)
    410
    1998
    Windows 98 Second Edition
    410
    2222
    Windows Me
    490
    3000.1
    Windows NT 4.0 (Gold)
    400
    1381
    Windows NT 4.0 + Service Pack 1
    400
    1381
    1
    Windows NT 4.0 + Service Pack 2
    400
    1381
    2
    Windows NT 4.0 + Service Pack 3
    400
    1381
    3
    Windows NT 4.0 + Service Pack 4
    400
    1381
    4
    Windows NT 4.0 + Service Pack 5
    400
    1381
    5
    Windows NT 4.0 + Service Pack 6
    400
    1381
    6
    Windows 2000
    500
    2195
    Windows 2000 + Service Pack 1
    500
    2195
    1
    Windows XP
    501
    2600
    Windows XP + Service Pack 1
    501
    2600
    1
    Windows Server 2003 family
    502
    Greater than 2600
    I got List, but i cant sure LabVIEW is the same as above.
    http://www.vitst.com
    Virry Test & Control
    LabVIEW Certified Developer

Maybe you are looking for

  • How to connect my Macbook Pro to play dvds on my TV

    What cables and which output ports are best to play DVDs on my Macbook pro and displaying the movies on my TV? I was thinking the video output would be either "mini display" or "firewire" and the audio would be the headphone audio out port, but I'm g

  • Re: Cannot Change Boot Priority To CD-ROM -- G580

    Hi, first post to this forum, so please forgive me if I've posted in the wrong place. I have a similar problem with a G580.   I've done some searching on this and other forums but so far nothing has helped. Here's the issue: 1. I had a working Win8 i

  • Inserting html or doc file in database

    Can I send an HTML or DOC file to Oracle database? The file houses text data along with some images and I'd like to send whole this file to database. Could anyone help me do this? Thanks

  • Ext page arrow[s] missing from base on column...why! hwlp pleaseant click onto next page

    have used'''''' '''''''''''''''''''''''firefox''''''''''''''''''''''''''l''' with ''' ''''''''''''''hotmail.com'''''''''''''''''for long time.. but currently n ext page arrows at base of hotmail column have gone missing.. .i e not visible.... why....

  • The following mapped Topic IDs were not used in any topic:

    Hi, I just start my Help File - RH8. One topic only. If it's writing in english "NewTopic1" compiling OK.  If it's writing in Portuguese "NovoTópico1", when compile get this Note. "The following mapped Topic IDs were not used in any topic:" Nothing a