Query to View all datbases in oracle 10g

How to view all databases all databases in a system. I am using oracle 10g .
i created 4 databases .
when created with dbca i am able to see databases in /etc/oratab.
but not able to see when created manually .

910342 wrote:
How to view all databases all databases in a system. I am using oracle 10g .
i created 4 databases .
when created with dbca i am able to see databases in /etc/oratab.
but not able to see when created manually ./etc/oratab will be updated by agent automatically,
So when you created database manually it is not going to edit oratab file.

Similar Messages

  • Tool for Viewing 3D data in Oracle 10g

    Hi,
    I had uploaded the 3D DGN format Data from FME Oracle Suite to Oracle 10g database.
    the following tables were created
    TESTASH_SDODIM TABLE
    TESTASH_SDOLAYER TABLE
    TESTASH_SDOGEOM TABLE
    TESTASH_SDOINDEX TABLE
    TESTASH TABLE
    When we are trying to browse the data using AutoCAD of any other viewer, we are unable to find this table in that particular user. Whereas if we run a sql command and run a sql query we are able to get the record count.
    Can you suggest something to view this data.
    Thanks and Regards
    Ashish Dhawan

    Ok.. I'd bet then that there are no entries in USER_SDO_GEOM_METADATA AKA MDSYS.SDO_GEOM_METADATA_TABLE. FME view needs to find an entry in there to show you it in the dialog so you can pick the table. The same holds true for views of tables, there needs to be an entry, although I find it somewhat ironic that it then goes on to not know what projection the data is in.
    Also, the viewer will pick the first SDO_GEOMETRY column it finds. So if you have more than one, you will then need to make a view for just that column.
    Anyway, add an entry into the table, and you should be good to go.
    Bryan

  • How to avoid:Query returns extra trailing spaces in oracle 10g

    I want to use cursor sharing FORCE, SIMILAR for performance tuning. but i am having some problems like query process will give extra trailing spaces this will throw errors from the java application while reading literals.
    do we have any option in oracle 10g to avoid extra trailing spaces during query processing ?
    alter session set cursor_sharing ='EXACT'
    select 1 from dual;
    '1'
    1
    alter session set curson_sharing='FORCE'
    select 2 from dual;
    '2'
    2
    alter session set curson_sharing='SIMILAR'
    select 3 from dual;
    '3'
    3

    You are right, But we already wrote millions of queries during that time we used cursor sharing is EXACT. so i don't want to take risk in modifying all the existing queries by adding TRIM.
    do we have any option in oracle to trim after/ during processing the query.
    Now we are facing performance issues and suggested us to use SIMILAR as cursor_sharing. but all the selected rows are giving extra tralining spaces.
    I think i am clear now.

  • Query Regarding Rich Text Editor in Oracle 10G

    Hello.
    Can anyone let me know is their any privilege in Oracle 10g that we Incorporate the Rich Text Editor functionality. Currently we are working on Laboratory / Radiology Template based Reports in which they are requesting their should be option through which we can simply Cut and Paste our organized TEXT(REPORT) which are formatted in MS WORD with Bold,Underline and in Bullets format, it should simply paste in Editor and we can view a Template based report with formatted REPORT.
    We are using Oracle 10G and it's Applet based Application. Any clue how can we Accomplish this? Any Suitable Suggestion?
    Thanks

    Sorry, I referred this already.. This also returns the HTML text. But i don't want the HTML text. I want Normal Text what i enter in the Editor. But as of now all the editors are returning HTML text. So in the front end also it is showing HTML text only.
    I entered the text in Editor as
    System Defaulted Note
    Quote entered
    But editor returns as below and the same way it is showing in the Front end application instead of above text.
    <html>
    <head>
    </head>
    <body>
    System Defaulted Note
    <p>
    Quote entered
    </p>
    </body>
    </html>

  • SQL QUERY to create new schema in Oracle 10g Express

    Can anyone provide the SQL query to create a new schema in Oracle 10g Express edition.

    Can anyone provide a SQl query to create a
    schema/user named 'test' with username as 'system'
    and password as 'manager'system user is created during database creation, it's internal Oracle admin user that shouldn't be used as schema holder.
    In Oracle database, Oracle user is schema holder there's no seperate schema name to be defined other than username.

  • View All sessions in Oracle 10.2.0.1.0

    Hi,
    I am newbie using
    Oracle Version 10.2.0.1.0
    How to view all the sessions similar to 9i EM
    Thanks.

    Same thing in 10.2 than in 9.2 : v$session
    Take a look to the Reference Guide :
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14237/toc.htm
    Nicolas.

  • View *all* databases in oracle 8i

    Hello all,
    Is there a statement/command which i can type to view ALL the databases in the oracle8i database. I am having a certain problem with an application which is using the database, only i am not aware which database it is using!! I do have dba priviledges..
    Thanks in advance

    You cannot do this from SQL*Plus. SQL*Plus connects to a single database. From there you can see any other database your database has a link to. You can see which databases those are by querying DBA_DB_LINKS. That is not necessarily the same thing as all "the databases in the system". If all your databases are linked to the database you're connecting to, then you can monitor them through SQL*Plus - you just have to suffix everything in the FROM clause with @db_name.db_link. Which is a lot of hard work: OEM does make this sort of thing very easy.
    Rgds, APC

  • Query to connect Java Applet to Oracle 10g.

    I am developing an Applet in Java 1.5.0.7.My database is Oracle 10g.Now when i connect Oracle to Java I get the Error : java.lang.ExceptionInInitializerError
    and it does not get connected.Please help me anyone.
    Below is the code which i have written.
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.MouseEvent;
    import java.beans.PropertyChangeEvent;
    import java.beans.PropertyChangeListener;
    import java.sql.*;
    import java.util.ArrayList;
    import javax.swing.JApplet;
    import javax.swing.JButton;
    import javax.swing.JLabel;
    public class tt7 extends JApplet
         implements ActionListener, PropertyChangeListener
    private int m_uniqueID = 0;
         JLabel m_lblRadius;
         // A button the user can click to display the Add Theme wizard.
         JButton m_btnAddTheme;
         static String m_mapxtremeURL = null;
         // TODO: Specify a map file name such as "uk.mdf" (if the mdf file is in
         // in same directory that the applet was loaded from),
         // or an URL to a map file, such as "http://host.com/maps/uk.mdf".
         // Or, instead of specifying this URL explicitly here, you can specify it
         // in the HTML page that loads the applet (using the 'filetoload' param).
    ResultSet rs=null ;
    ArrayList arrlist=null;
    ArrayList arrlist1=null;
    ArrayList arrlist2=null;
    //Connection con=null;
    Statement st=null;
         public void start()
         } // start method
         public void init()
    try{
    // System.out.println("helloooooooo");
    Class.forName("oracle.jdbc.driver.OracleDriver");
    //Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection con= DriverManager.getConnection("Jdbc:oracle:thin:@asl005:1521:geo","system","1234567");//"jdbc:oracle:thin:@asl005:1521:geo","system","1234567");
    System.out.println("helloooooooo");
    System.out.println("CON:"+con.toString());
    st = con.createStatement();
    System.out.println("St:"+st);
    catch(Exception e2){System.out.println("Exception :"+e2);}
    catch(ExceptionInInitializerError s)
    System.out.println("Exception2 :"+s);
    }// If the HTML page specified parameters, use them to
              // override our default values.
              // See if a MapDef file was specified in the HTML file.
         }     // propertyChange method
         // Respond to the user actions, such as clicking
         // the Add Theme button.
    public void actionPerformed(ActionEvent e)
    // LocalDataProviderRef localDPRef = null;
    // a static label displayed in the applet
    public void propertyChange(PropertyChangeEvent evt) {
    This is the HTML CODE...
    <HTML>
    <HEAD>
    <TITLE>SimpleMap applet demonstration</TITLE>
    </HEAD>
    <BODY>
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    WIDTH = 600 HEIGHT = 440
    codebase="http://java.sun.com/products/plugin/1.3.1/jinstall-131-win32.cab#Version=1,3,1,0">
    <PARAM NAME = CODE VALUE = "tt7.class" >
    <PARAM NAME=archive VALUE="classes12.jar">
    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.5">
    <COMMENT>
    <EMBED type="application/x-java-applet;version=1.5"
    CODE = "tt7.class"
    WIDTH = 600 HEIGHT = 440
    archive="classes12.jar"
    pluginspage="http://java.sun.com/products/plugin/1.3.1/plugin-install.html">
    <NOEMBED></COMMENT>
    alt="Your browser understands the &lt;APPLET&gt; tag but isn't running the applet, for some reason."
    Your browser is completely ignoring the &lt;APPLET&gt; tag!
    </NOEMBED></EMBED>
    </OBJECT>
    </BODY>
    </HTML>

    My dear colleague, You better consider asking this question in Jdeveloper forum.
    I have a simple code for Windows application. You can easily convert it into Applet application..
    import java.awt.*;
    import java.awt.event.*;
    import java.sql.*;
    import oracle.jdbc.*;
    import oracle.sql.*;
    public class QueryFrame extends Frame {
    TextField inputText;
    public QueryFrame() {
    super("Query Interface");
    setSize(450, 250);
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    ActionListener printListener = new ActionListener() {
    public void actionPerformed(ActionEvent ae) {
    ConnectAndRun(inputText.getText());
    Panel toolbar = new Panel();
    toolbar.setLayout(new FlowLayout(FlowLayout.LEFT));
    Button queryButton = new Button("Run Query");
    queryButton.addActionListener(printListener);
    toolbar.add(queryButton);
    inputText = new TextField(14);
    toolbar.add(inputText);          
    // The "preferred" BorderLayout add call
    add(toolbar, BorderLayout.NORTH);
    public static void main(String args[]) {
    QueryFrame tf1 = new QueryFrame();
    tf1.setVisible(true);
         public void ConnectAndRun(String s)
              String sqlquery;
              if (s.equals(""))
              sqlquery ="select * from DEPT where LOC is null";
              else
              sqlquery ="select * from DEPT where LOC like '" + s + "'";
              System.out.println(sqlquery);
              try
              DriverManager.registerDriver (new oracle.jdbc.OracleDriver());
         Connection conn = DriverManager.getConnection ("jdbc:oracle:thin:@localhost:1521:HELLO","scott","tiger");
         Statement stmt = conn.createStatement ();
              ResultSet rset = stmt.executeQuery (sqlquery);
              while (rset.next ())
                   System.out.println( rset.getInt("DEPTNO"));
                   System.out.println( rset.getString("DNAME"));
                   System.out.println (rset.getString("LOC"));
              rset.close();
         stmt.close();          
              catch (SQLException se)
                   System.out.println(se);
    Make sure you have appropriate libraries in classpath...

  • SQL query to view all columns

    Hello,
    How can I view all columns stored in the Users table? I know some of the field names, like Users.First Name, Users.Last Name, Users.Login, Users.Manager Login.
    I'm essentially trying to access some udf fields (usr_udf_fielda, usr_udf_fieldb) and don't know how to reference them.
    Thanks.

    This is the code I'm using. It was actually working just fine when I had hard coded test values. Since I changed it to references it's been generating that error so I assumed it had something to do with that.
    package com.oracle.events;
    import Thor.API.Operations.tcUserOperationsIntf;
    import Thor.API.tcResultSet;
    import Thor.API.tcUtilityFactory;
    import com.thortech.xl.crypto.tcCryptoUtil;
    import com.thortech.xl.crypto.tcSignatureMessage;
    import com.thortech.xl.util.config.ConfigurationClient;
    import java.util.HashMap;
    import java.util.Hashtable;
    import java.util.Map;
    public class managerid2 extends com.thortech.xl.client.events.tcBaseEvent{
    tcUtilityFactory utilFactory = null;
    tcSignatureMessage moSignature = null;
    ConfigurationClient.ComplexSetting myConfig = ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer");
    final Hashtable env = myConfig.getAllSettings();
    Map statusMap = new HashMap();
    private tcUserOperationsIntf userIntf;
    String supervisoremplno=getDataObject().getString("usr_udf_supemplno");
    protected void implementation() throws Exception {
    if (getDataObject().isDeleting()) {
    return;
    if (getDataObject().isUpdating()) {
    return;
    String managerid= getManagerID(supervisoremplno);
    try{
    getDataObject().setString("usr_manager",managerid);
    return;
    }catch(Exception ioex){
    System.out.println("Supervisoremployeenumber does not exist" + ioex.getMessage());
    return;
    public String getManagerID(String supervisoremplno) {
    try {
    moSignature = tcCryptoUtil.sign("xelsysadm", "PrivateKey");
    utilFactory = new tcUtilityFactory(env, moSignature);
    userIntf = (tcUserOperationsIntf) utilFactory.getUtility("Thor.API.Operations.tcUserOperationsIntf");
    String userid = "temp";
    //String supervisoremplno=userSet.getStringValue("usr_udf_supemplno");
    HashMap userHash = new HashMap();
    userHash.put("Users.User ID", userid);
    tcResultSet userSet = userIntf.findAllUsers(userHash);
    for (int i=0;i<userSet.getTotalRowCount();i++){
    userSet.goToRow(i);
    String emplno=userSet.getStringValue("USR_UDF_EMPLNO");
    String mgrid = userSet.getStringValue("Users.Login");
    if(emplno.equalsIgnoreCase(supervisoremplno))
    return mgrid;
    catch(Exception e){
    return "xelsysadm";
    }

  • Query: to view all users that have been created for access to a database

    Hi,
    Is there a command syntax that we could give to see all the users who have been created for access to a particular database. I want to view all the users that have been created using sql* plus.
    can anyone help or is it impossible?
    Thanks

    This is for begging:
    [email protected]> select grantee, privilege from dba_sys_privs where privilege like '%CREATE%SESSION%
    2 /
    GRANTEE PRIVILEGE
    A CREATE SESSION
    AA CREATE SESSION
    U1 CREATE SESSION
    U2 CREATE SESSION
    BD1 CREATE SESSION
    DBA CREATE SESSION
    EMI CREATE SESSION
    MOB CREATE SESSION
    ODM CREATE SESSION
    OHP CREATE SESSION
    SEC CREATE SESSION
    SYS CREATE SESSION
    TU1 CREATE SESSION
    TU2 CREATE SESSION
    U01 CREATE SESSION
    XDB CREATE SESSION
    MOBI CREATE SESSION
    OHP4 CREATE SESSION
    PFAY CREATE SESSION
    UD01 CREATE SESSION
    UR01 CREATE SESSION
    ADHOC CREATE SESSION
    BATCH CREATE SESSION
    DEBUG CREATE SESSION
    DEV01 CREATE SESSION
    HRAPP CREATE SESSION
    MDSYS CREATE SESSION
    MOBI2 CREATE SESSION
    SKING CREATE SESSION
    SPACE CREATE SESSION
    UPASS CREATE SESSION
    WKSYS CREATE SESSION
    CTXSYS CREATE SESSION
    ORDSYS CREATE SESSION
    PRAC01 CREATE SESSION
    RTABLE CREATE SESSION
    CONNECT CREATE SESSION
    Than you have to select also all the users that have granted roles with this privilege
    this will give you the full set of users who can connect
    Best Regards
    Krystian Zieja / mob

  • Query with IN and MINUS operator (Oracle 10g)

    Hi,
    This query will work as per my requiements, my database is 10g.
    eg. Emp_M has all the Employee details, I want to fetch the details of employees from Emp_M table, who are presenet in Emp_GradeA but not in Emp_Bonus table.
    select * from Emp_M where Emp_ID in(
    (select Emp_ID from Emp_GradeA)
    MINUS
    (select Emp_ID from Emp_Bonus))
    I read in Oracle 8 or 8i books , IN has more priority than MINUS, so
    select * from Emp_M where Emp_ID in (
    (select Emp_ID from Emp_GradeA)
    will work first and then the remainin part. But I need the other way, first apply MINUS and then IN.
    Thanks in advance.
    Rizly

    Your original query should work fine, because you are using parenthesis to tell which part of the query get's executed first.
    Did you try running it in 8?

  • Regarding accessing SQL query issued by any user in Oracle 10g

    Hi all,
    i want to know the queries issued by various users accessing a database...
    But the in view DBA_AUDIT_TRAIL,I was getting empty value...(in SQLTEXT column) ...how can i get this value...
    Thanx
    in advance..

    Straight from the documentation :
    The SQL_BIND and SQL_TEXT columns are only populated if the AUDIT_TRAIL initialization parameter is set to db,extended.In addition, you have to make sure you issued the AUDIT command on the objects you would like to AUDIT access on.
    [Configuring and Administering Auditing|http://download.oracle.com/docs/cd/B19306_01/network.102/b14266/cfgaudit.htm]

  • Backing up all data and objects of Oracle 10g Express Edition...

    Hi,
    I have tables, packages, views, procedures, etc. in Oracle 10g Express Edition, running on Windows XP. I would like to create a backup of the complete database (objects, relationships, all data, etc) into a file that I can restore in case the database crashes.
    What do I do?
    Thanks.

    markk2 wrote:
    I am actually using it for Production. Yes, I would need objects and data.I would suggest to look at the Standard Edition as well if you are using it for production.
    Is there a way to backup everything without data and then backup everything with data? Also, is there a way to restore everything without data and then restore everything with data?What's the meaning of "backup everything withiut data" and "then backup everything with data" ? The data is in the tables alone. The rest of the objects are not containing data but are using it, be it views, procedures etc. There is no such restore like without data. Without data, all what you would be getting would be structures of the tables which is going to be of no use. The export/import tool, is a simple tool which can put the tables (and other objects as well) along with their data in your dumpfile . In the situation of loss of a table, you can do an import from that dump file and you can restore the table back(with or without data, depends on the choice of yours while running Import command) . But this is just going to be a logical recovery of the object(s). For a complete database, it's better to use RMAN which would copy the datafiles and keep it with itself. Later, when you have a crash, you can restore those files to get teh database recovered. But if you want complete security, its better to put your db in the archive log and then do the backup along with the archive log files.
    HTH
    Aman....
    How to do this exactly? Thanks!

  • Forms based on query?  Is it possible in Oracle Portal?

    here is my code that i want to use
    SELECT a.first, a.last, b.Position_CD, c.skill_cd, d.team_name, d.team_country, d.club, e.structure_name
    FROM Roster a, Roster_position b, roster_skill c, team d, team_structure e
    where (a.Roster_ID = b.roster_id (+) and (b.roster_id = c.roster_id (+) ) and (a.team_cd = d.team_cd(+)) and (a.team_structure_cd = e.team_structure_cd (+)))
    order by a.roster_id;
    Is it possible for oracle portal to support such a query in a form?
    Oracle portal supports single tables or views...master-detal...and forms based on procedures.
    Since the above query associates with moro then one table..how might one create a form based on that query? Is their a way in oracle portal to create a form and have its record source be based on such a complex query and be able to update and insert data? I know and have tested that it works in Ms Access and i can update and add data in that above query. Hopefully oracle supports this. (*cross fingers*)
    If i cant do what i said above...what advice or suggestions you guys have for me? If i use master-detail it won't work right because i need to involve all 5 tables.
    Any help or comments are greatly appreciated!

    When i made the above query a view and created an oracle portal form. I get this error when I try to retrieve all the records in that view i made above.
    An unexpected error occurred: ORA-01445: cannot select ROWID from a join view without a key-preserved table (WWV-16016)
    What does the "key-preserved table" mean?

  • Oracle 10g Express Edition / 64-bit client

    hi all,
    I have Oracle 10g express edition installed on a remote Vista/32-bit machine. I installed the XE Client on a Vista/64-bit and got the following error:
    UnsatistifiedLinkError: ocijdbc10.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform.
    So, I tried installing the Instant Client (64-bit) and I'm getting a similiar error:
    UnsatistifiedLinkError: ocijdbc10.dll: Can't load IA 64-bit .dll on a AMD 64-bit platform.
    Using the XE Client, I'm able to login using sqlplus. Anyone have any ideas ??
    thanks jim
    Message was edited by:
    user584351

    Hi Jim, unless something has changed recently - the installation instructions for XE specifically state it is for a 32-bit windows operating system. Also, it does not mention using Vista. If you have access to the 10g Express forum they may have more information there for you.
    Michael W. Cunningham

Maybe you are looking for

  • Proble with payload-body.jsp customization

    Dear Experts, I have customized payload-body.jsp, here I am having problem with <select> and <date_picker> html component. After the selection of specified value, if I press default save button , will reset to Initial value. My xml payload contains m

  • Variable number of arguments in procedure PL/SQL

    Hello everyone, I have a "simple" question : can a procedure PL/SQL take a variable number of arguments ? In my case, the procedure is called by the submit button of a form, and the form has variable number of inputs... Thanks you !

  • Procurement List according to Vendor(Very Urgent)

    Dear Experts, I need a report,which should give all purchasing details with respect to vendor in a period(Month Wise)... How to get this??? Please reply me...Its Urgent.... Regards MK

  • How to link vbak and vbrp tables

    hi friends, i want to display lips table values based on lips-vbeln = it_vbrp-vgbel here i want a filed thru which i can link vbrp-<fieldname> to vbak/vbap-vbeln so that i can get values into it_vbrp. here is equation.   it_vbrp =>   vbak-vbeln = vbr

  • VBAIInterf​aceC.dll could not be found on 64-bit machine

    I'm currently trying to run a vbai program with .net like in the DotNET examples included in the "API Examples" map. I added the NationalInstruments.VBAI.2008 to my References in visual studio 2008 and the program runs fine on my Windows XP SP3 32bit