Ddl queries

When I issue a statement like create database link, it is not getting listed in v$sqltext or V$sqlarea. Is it that only DML statements gets listed there.
Is there any other views to see the statements currently running/ already run...

Hi,
Yes DML only gets listed in those Dynamic performance views. U'r DDL does not even gets cached by Oracle.
regards,
Ganesh R

Similar Messages

  • Blocking DDL Queries Across Schemas

    I am experiencing a problem where DDL queries executed on two different schemas seem to be blocking each other and hence taking longer time to execute. If they are not executed in parallel they complete within the expected time.
    What pointers should I research or look upon?
    P.S - We are using 64 bit Oracle 11gr2 Standard Edition RAC server.

    You are saying that parallel execution of DDL queries are blocking each other user request; so as Sb has said, post your DDL queries, how and when you are running DDL queries, what error you are getting; i mean provide us more information as much as you can (because none of here are able to see your monitor, what exactly you are doing and what exactly oracle is saying) etc. There are many ready made SQLs available on this forum and/or google by just search with this forum or google, post your effort to get the solution then we will try our best to give you solution.
    Not something like, "Doctor (forum members), today i am not feeling well (DDL queries are blocking each other), please give me some medicine (some sql to solve the question)"
    Regards
    Girish Sharma

  • Is it possible to fire DDL queries from within a trigger?

    Hi,
    In Oracle 8.0.5, Is it possible to fire DDL queries from within a trigger?
    e.g. when no. of rows is multiple of 1000, I wish to call a procedure which
    analyzes the table and finds the size of the table. I am getting :
    "ORA-04092: cannot COMMIT in a trigger" error message.
    Regards
    Sanchayan

    One way around this is to use the AUTONOMOUS_TRANSACTION pragma, but I think that was introduced in 8i. Check your docs. Another way is to set up a procedure to do the ANALYZE and in your trigger submit a job using DBMS_JOB to run that procedure.
    Anyway, the second option is best because you really don't want to impose the overhead of running an ANALYZE onto a DML transaction.
    You are also going to run into the mutating table problem: you can't find out how big the table is, because you can't run queries against the table from within a trigger. You could use DATE_LAST_ANALYZED from USER_TAB_COLUMNS, but really you should just schedule jobs to run ANALAYZE at regular intervals - once a day, once a week, once a month, depending on the volatility and usage of any given table.
    Cheers, APC

  • DDL in hibernate

    how to do DDL Operation in hibernate
    like creating table,creating sequence,droping table,
    how to get sequence value from table
    like select next.val from dual;

    Please disregard dcminter's response. He is incapable of providing useful responses, unfortunately.
    I have ran into a similar problem, and Hibernate provides build in functionality to execute DDL commands.
    An option could be:
    Configuration config = new Configuration().configure();
    SchemaExport sch = new SchemaExport(config);
    sch.create(true, true);
    SessionFactory sessionFactory = config.buildSessionFactory();
    ======
    The above will run the DDL generation process via code ... another may be ...
    Session session = HibernateUtil.getSessionFactory().getCurrentSession();
    session.beginTransaction();
    session.createQuery("delete popolamento.Spectra").executeUpdate();
    session.getTransaction().commit();
    HibernateUtil.getSessionFactory().close();
    =====
    The above will let you run your own DDL queries. Unfortunately, this is one of the little known weakness of Hibernate .. DDL queries.

  • Need some help about a query

    Hello,
    I'm new to oracle DB.
    Can someone help me with this query please?
    I want a query which returns the details of all the DML and DDl queries performed on a database in a particular period of time like for example from that date to today.
    Thank you..

    All changes made to user data or to the data dictionary are recorded in the Oracle redo logs. Therefore, redo logs contain all the necessary information to perform recovery operations. Because redo log data is often kept in archived files, the data is already available.
    Actually to do this you got to have DBA privileges.
    You have to use oracle LOGMINER
    Oracle Corporation provides SQL access to the redo logs through LogMiner, which is part of the Oracle database server. LogMiner presents the information in the redo logs through the V$LOGMNR_CONTENTS fixed view. This view contains historical information about changes made to the database
    Please refer the following link to get more details on the same.
    http://docs.oracle.com/cd/B10501_01/server.920/a96521/logminer.htm
    Hope this helps :)

  • Exception while using XA driver for Oracle 9.0.1 with WL Integration 7.0

    java.sql.SQLException: ORA-06550: line 1, column 13:
    PLS-00201: identifier 'JAVA_XA.XA_START_NEW' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1451)
    at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:862
    at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.ja
    va:1846)
    at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.jav
    a:1771)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
    nt.java:2361)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePrepar
    edStatement.java:422)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStat
    ement.java:487)
    at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:17
    9)
    at weblogic.jdbc.jta.VendorXAResource.start(VendorXAResource.java:41)
    at weblogic.jdbc.jta.DataSource.start(DataSource.java:569)
    at weblogic.transaction.internal.ServerResourceInfo.start(ServerResource
    Info.java:1165)
    at weblogic.transaction.internal.ServerResourceInfo.xaStart(ServerResour
    ceInfo.java:1108)
    at weblogic.transaction.internal.ServerResourceInfo.enlist(ServerResourc
    eInfo.java:287)
    at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(Se
    rverTransactionImpl.java:391)
    at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1143)
    at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1
    098)
    at weblogic.jdbc.jta.Connection.getXAConn(Connection.java:145)
    at weblogic.jdbc.jta.Connection.prepareStatement(Connection.java:211)
    at weblogic.jdbc.rmi.internal.ConnectionImpl.prepareStatement(Connection
    Impl.java:139)
    at weblogic.jdbc.rmi.SerialConnection.prepareStatement(SerialConnection.
    java:81)
    at weblogic.ejb20.utils.TableVerifier.checkTableAndColumns(TableVerifier
    .java:131)
    at weblogic.ejb20.utils.TableVerifier.verifyTableAndColumnsExist(TableVe
    rifier.java:333)
    at weblogic.ejb20.utils.TableVerifier.verifyTableExistsAndCreateMaybe(Ta
    bleVerifier.java:404)
    at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.verifyTablesExist(RD
    BMSPersistenceManager.java:1019)
    at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.setup(RDBMSPersisten
    ceManager.java:141)
    at weblogic.ejb20.manager.BaseEntityManager.setupPM(BaseEntityManager.ja
    va:214)
    at weblogic.ejb20.manager.BaseEntityManager.setup(BaseEntityManager.java
    :186)
    at weblogic.ejb20.manager.DBManager.setup(DBManager.java:161)
    at weblogic.ejb20.manager.ROManager.setup(ROManager.java:111)
    at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.activate(ClientDrive
    nBeanInfoImpl.java:936)
    at weblogic.ejb20.deployer.EJBDeployer.activate(EJBDeployer.java:1302)
    at weblogic.ejb20.deployer.EJBModule.activate(EJBModule.java:342)
    at weblogic.j2ee.J2EEApplicationContainer.activateModule(J2EEApplication
    Container.java:1534)
    at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContai
    ner.java:991)
    at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContai
    ner.java:928)
    at weblogic.management.deploy.slave.SlaveDeployer.setActivationStateForA
    llApplications(SlaveDeployer.java:611)
    at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.j
    ava:368)
    at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resum
    e(DeploymentManagerServerLifeCycleImpl.java:235)
    at weblogic.t3.srvr.ServerLifeCycleList.resume(ServerLifeCycleList.java:
    61)
    at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:812)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:294)
    at weblogic.Server.main(Server.java:31)

    Hi Raja,
    I forgot this one, sorry. In fact, all you need to do is to
    ask you DBA for enabling oracle instance for XA use :)
    Regards,
    Slava Imeshev
    "Raja" <[email protected]> wrote in message
    news:[email protected]...
    >
    Thanks a lot for response.
    I tried it out but it didn't help.
    I also came across a script initxa.sql (%ORAHOME%/javavm/install)which hasthe
    DDL queries to create the JAVA_XA package in oracle. But iam not sure ifthis
    is to be manually run on the server or if it should have been run whilethe Database
    Creation was done. Any info about this would be helpful
    "Slava Imeshev" <[email protected]> wrote:
    Hi Raja,
    Is it possible that oracle instance hasn't been set up for XA support?
    Here is an extract from the documentation:
    ===================================================
    Enable XA on the Database Server
    To prepare the database for XA, perform these steps:
    a.. Log on to sqlplus as system user, e.g. sqlplus
    sys/CHANGE_ON_INSTALL@<DATABASE ALIAS NAME>
    b.. Execute the sql: grant select on DBA_PENDING_TRANSACTIONS to public
    If the above steps are not performed on the database server, normal XA
    database queries and updates may work fine. However, when the Weblogic
    Server Transaction Manager performs recovery on a re-boot after a crash,
    recover for the Oracle resource will fail with XAER_RMERR.
    ===================================================
    Regards,
    Slava Imeshev
    "Raja" <[email protected]> wrote in message
    news:[email protected]...
    java.sql.SQLException: ORA-06550: line 1, column 13:
    PLS-00201: identifier 'JAVA_XA.XA_START_NEW' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    atoracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
    at
    oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1451)
    atoracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:862
    atoracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.ja
    va:1846)
    atoracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.jav
    a:1771)
    atoracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
    nt.java:2361)
    atoracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePrepar
    edStatement.java:422)
    atoracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStat
    ement.java:487)
    atoracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:17
    9)
    atweblogic.jdbc.jta.VendorXAResource.start(VendorXAResource.java:41)
    at weblogic.jdbc.jta.DataSource.start(DataSource.java:569)
    atweblogic.transaction.internal.ServerResourceInfo.start(ServerResource
    Info.java:1165)
    atweblogic.transaction.internal.ServerResourceInfo.xaStart(ServerResour
    ceInfo.java:1108)
    atweblogic.transaction.internal.ServerResourceInfo.enlist(ServerResourc
    eInfo.java:287)
    atweblogic.transaction.internal.ServerTransactionImpl.enlistResource(Se
    rverTransactionImpl.java:391)
    at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1143)
    atweblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1
    098)
    at weblogic.jdbc.jta.Connection.getXAConn(Connection.java:145)
    atweblogic.jdbc.jta.Connection.prepareStatement(Connection.java:211)
    atweblogic.jdbc.rmi.internal.ConnectionImpl.prepareStatement(Connection
    Impl.java:139)
    atweblogic.jdbc.rmi.SerialConnection.prepareStatement(SerialConnection.
    java:81)
    atweblogic.ejb20.utils.TableVerifier.checkTableAndColumns(TableVerifier
    java:131)
    atweblogic.ejb20.utils.TableVerifier.verifyTableAndColumnsExist(TableVe
    rifier.java:333)
    atweblogic.ejb20.utils.TableVerifier.verifyTableExistsAndCreateMaybe(Ta
    bleVerifier.java:404)
    atweblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.verifyTablesExist(RD
    BMSPersistenceManager.java:1019)
    atweblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.setup(RDBMSPersisten
    ceManager.java:141)
    atweblogic.ejb20.manager.BaseEntityManager.setupPM(BaseEntityManager.ja
    va:214)
    atweblogic.ejb20.manager.BaseEntityManager.setup(BaseEntityManager.java
    :186)
    at weblogic.ejb20.manager.DBManager.setup(DBManager.java:161)
    at weblogic.ejb20.manager.ROManager.setup(ROManager.java:111)
    atweblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.activate(ClientDrive
    nBeanInfoImpl.java:936)
    atweblogic.ejb20.deployer.EJBDeployer.activate(EJBDeployer.java:1302)
    at
    weblogic.ejb20.deployer.EJBModule.activate(EJBModule.java:342)
    atweblogic.j2ee.J2EEApplicationContainer.activateModule(J2EEApplication
    Container.java:1534)
    atweblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContai
    ner.java:991)
    atweblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContai
    ner.java:928)
    atweblogic.management.deploy.slave.SlaveDeployer.setActivationStateForA
    llApplications(SlaveDeployer.java:611)
    atweblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.j
    ava:368)
    atweblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resum
    e(DeploymentManagerServerLifeCycleImpl.java:235)
    atweblogic.t3.srvr.ServerLifeCycleList.resume(ServerLifeCycleList.java:
    61)
    at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:812)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:294)
    at weblogic.Server.main(Server.java:31)

  • Problem downloading the ddl script

    Hi all,
    I am trying to upload a DDL script to execute it on my new apex application.
    It doesn't work, I get an error, I realised that I have to copy and past the code of the creation of a table one by one.
    Do you have any idea how to fix that ? to execute the ddl script at once ?
    I cannot execute hundreds of queries one by one
    Thank you, it is urgent

    Moun wrote:
    Hi all,
    I am trying to upload a DDL script to execute it on my new apex application.
    It doesn't work, I get an error, I realised that I have to copy and past the code of the creation of a table one by one.
    Do you have any idea how to fix that ? to execute the ddl script at once ?
    I cannot execute hundreds of queries one by one
    Thank you, it is urgentYour problems are no more or less "urgent" than any others on this forum, and the volunteers here are free to use their time as they see fit. Making claims of "urgency" is the best way to get your question ignored.
    However in this case the problem is quite simple: you have not bothered to consult the documentation. Use the SQL Workshop SQL Scripts page.

  • How to revoke the  ddl statements in the same user's objects

    anyone pls,
    I need to restrict ddl on the same user's objects.
    means, i'm having a user common. my developers are keep on creating tables and alter the existing tables. Even if they are the owner of the objects, can possible to revoke the create and alter only?
    if possible means, could u advice with queries.. because now only i'm learning dba sides.
    Thanks in advance,
    Regards,
    RengarajR

    Hi Vadim.
    GREAT! Our requirement is fulfilled by that way you described. Special thanks for your help!!!
    Best regards,
    Masa

  • How can I create "Sub Queries" in a select statement?

    Hi all,
    I need to create reports, which are not based on a single table but on several "sub-queries".
    This would be the code, but I don't know how to solve that problem...
    SELECT OGBI.*
    FROM
    (((select "OSSRALL"."FORECAST_OWNER", sum
    ("OSSRALL"."TOTAL_OPPORTUNITY_AMOUNT")
    from "#OWNER#"."OSSRALL" "OSSRALL",
    "#OWNER#"."TEAM_MAIN" "TEAM_MAIN",
    "#OWNER#"."MA_MAIN" "MA_MAIN"
    group by "OSSRALL"."FORECAST_OWNER")OGBI.APPSME1)
    where "OSSRALL"."OPP_CLASS" = (EX_OTHERS)),
    -- more are following
    "#OWNER#"."OSSRALL" "OSSRALL",
    "#OWNER#"."TEAM_MAIN" "TEAM_MAIN",
    "#OWNER#"."MA_MAIN" "MA_MAIN"
    WHERE
    ("MA_MAIN"."MA_NAME"||', '||"MA_MAIN"."MA_FIRST_NAME"||' Mr'
    like "OSSRALL"."FORECAST_OWNER" or
    "MA_MAIN"."MA_NAME"||', '||"MA_MAIN"."MA_FIRST_NAME"||' Mrs'
    like "OSSRALL"."FORECAST_OWNER" or
    "MA_MAIN"."MA_NAME"||', '||"MA_MAIN"."MA_FIRST_NAME"
    like "OSSRALL"."FORECAST_OWNER") and
    ("OSSRALL"."SALES_GROUP"="TEAM_MAIN"."NAME") and
    ("MA_MAIN"."MA_ID"=:P17_VB1)
    thx a lot for your help.
    kind regards Jan
    Message was edited by:
    Jan Rabe

    Jan
    Please can you post the full select statement and the DDL to create the tables? Or, provide someone access to the app on the Oracle server.
    We can probably make these much more readable using table aliases and removing the owner unless you are doing this across schemas or via a wizard?
    It looks like you are missing joins in your query - is this what you mean by subqueries? It is a good idea to move the join up before the WHERE clause if you can as this makes the query easier to manage.
    Phil

  • Need to create some queries.

    Hi,
    I am having some issues with creating some queries with respect to some information that is needed.
    1) How can i get the list of tables from my schema that have not been used for some time (for e.g for the past 2 months no dml activity has happnd)?
    2) How can i get the information of those users in a instance who have direct access to the tables in my schema.?
    Thanks,
    Shilpesh

    SHILPFID wrote:
    Hi,
    Thanks for that
    But i would like to know one more thing.
    DDL_TIME will show only any ddl statement issued against that.
    What if we are still accessing the tables using select statements ??Well a select statement isn't, strictly speaking, even a DML statement as it is not modifying the data.
    There is no automatic recording of time when DML or select statements are executed against tables. With DML you can choose to record that information yourself through your own table design and code. If you have control over the application front end you can record when queries are made, but you can't automatically record when someone queries a table just using a select statement directly on the database (at least not easily)
    You can also delve into the archive logs to find DML times but they are not guaranteed to be held for as long as you will require and certainly won't be there two months later.
    Essentially, you can't determine information that you haven't chosen to store.

  • Delimiter/Marker inside ddl

    Hi
    I am using DBMS_METADATA to dump the ddl of database objects into a variables using JDBC. I need to seperate each block so that there is a delimiter/marker after every column, constraint, indexe etc inside ddl. Looking for some sugesstions on how to do this, can I include a dilimeter option within the dbms_metadata.get_ddl(...) statement?
    Thanks

    That misunderstanding is why posters need to provide very specific examples of what they are trying to do. Samples of all inputs and a sample of the expected output.
    Instead of DBMS_METADATA.GET_DDL get SXML instead. That will give you a simplified XML version of the metadata with every element surrounded by begin/end element tags. You can then further process it:
    1. using XPATH queries to query the elements you want to process.
    2. using an XSLT stylesheet to access and manipulate the elements you want to process (which is what Oracle does to give you the DDL in the examples I posted.
    SELECT DBMS_METADATA.GET_SXML('TABLE', 'DEPT', 'SCOTT') FROM DUAL
      <TABLE xmlns="http://xmlns.oracle.com/ku" version="1.0">
       <SCHEMA>SCOTT</SCHEMA>
       <NAME>DEPT</NAME>
       <RELATIONAL_TABLE>
          <COL_LIST>
             <COL_LIST_ITEM>
                <NAME>DEPTNO</NAME>
                <DATATYPE>NUMBER</DATATYPE>
                <PRECISION>2</PRECISION>
                <SCALE>0</SCALE>
             </COL_LIST_ITEM>
             <COL_LIST_ITEM>
                <NAME>DNAME</NAME>
                <DATATYPE>VARCHAR2</DATATYPE>
                <LENGTH>14</LENGTH>
             </COL_LIST_ITEM>
             <COL_LIST_ITEM>
                <NAME>LOC</NAME>
                <DATATYPE>VARCHAR2</DATATYPE>
                <LENGTH>13</LENGTH>
             </COL_LIST_ITEM>
          </COL_LIST>
          <PRIMARY_KEY_CONSTRAINT_LIST>
             <PRIMARY_KEY_CONSTRAINT_LIST_ITEM>
                <NAME>PK_DEPT</NAME>
                <COL_LIST>
                   <COL_LIST_ITEM>
                      <NAME>DEPTNO</NAME>
                   </COL_LIST_ITEM>
                </COL_LIST>
                <USING_INDEX>
                   <INDEX_ATTRIBUTES>
                      <PCTFREE>10</PCTFREE>
                      <INITRANS>2</INITRANS>
                      <STORAGE>
                         <INITIAL>65536</INITIAL>
                         <NEXT>1048576</NEXT>
                         <MINEXTENTS>1</MINEXTENTS>
                         <MAXEXTENTS>2147483645</MAXEXTENTS>
                         <PCTINCREASE>0</PCTINCREASE>
                         <FREELISTS>1</FREELISTS>
                         <FREELIST_GROUPS>1</FREELIST_GROUPS>
                         <BUFFER_POOL>DEFAULT</BUFFER_POOL>
                         <FLASH_CACHE>DEFAULT</FLASH_CACHE>
                         <CELL_FLASH_CACHE>DEFAULT</CELL_FLASH_CACHE>
                      </STORAGE>
                      <TABLESPACE>USERS</TABLESPACE>
                      <LOGGING>Y</LOGGING>
                   </INDEX_ATTRIBUTES>
                </USING_INDEX>
             </PRIMARY_KEY_CONSTRAINT_LIST_ITEM>
          </PRIMARY_KEY_CONSTRAINT_LIST>
          <PHYSICAL_PROPERTIES>
             <HEAP_TABLE>
                <SEGMENT_ATTRIBUTES>
                   <PCTFREE>10</PCTFREE>
                   <PCTUSED>40</PCTUSED>
                   <INITRANS>1</INITRANS>
                   <STORAGE>
                      <INITIAL>65536</INITIAL>
                      <NEXT>1048576</NEXT>
                      <MINEXTENTS>1</MINEXTENTS>
                      <MAXEXTENTS>2147483645</MAXEXTENTS>
                      <PCTINCREASE>0</PCTINCREASE>
                      <FREELISTS>1</FREELISTS>
                      <FREELIST_GROUPS>1</FREELIST_GROUPS>
                      <BUFFER_POOL>DEFAULT</BUFFER_POOL>
                      <FLASH_CACHE>DEFAULT</FLASH_CACHE>
                      <CELL_FLASH_CACHE>DEFAULT</CELL_FLASH_CACHE>
                   </STORAGE>
                   <TABLESPACE>USERS</TABLESPACE>
                   <LOGGING>Y</LOGGING>
                </SEGMENT_ATTRIBUTES>
                <COMPRESS>N</COMPRESS>
             </HEAP_TABLE>
          </PHYSICAL_PROPERTIES>
       </RELATIONAL_TABLE>
    </TABLE>
    I thing we may have beat this one to death;)

  • I want the list sql queries performed someone in one session based

    V$SESSION V$SQLTEXT and audsid (taken from sys_context('USERENV','SESSIONID') ) are great .. session_id be generated by a trigger when the application logs on) but then uploading the list of sql queries made by that user (application) until they log off seems impossible.
    I've tried creating triggers that check if V$SESSION changes with respect to an audsid number and sql_hash_value but it didn't work. I'm trying to work out why.
    In the meantime I thought I'd post this to see if anyone else foudn another way.
    I don't want to use sql trace that just gives load of info, I just want simple sql queries.
    Auditting seemed a bit complicated, can that list ALL DML and DDL commands made by a user? if so how?
    thanks
    Bobby

    quite right.
    Oracle enterprise dedicated server 9.2.0.8 on solaris 10.
    I just want to log all command DML and DDL, without stats or anything like that, simply a list, in a chronological order would be nice.
    I found something called dbms_fga package but not sure if thats what I want. Seems I have to implement it on specific tables. which is not good if the application hasn't created the tables yet.
    Thanks in advance.

  • SQL Tab & Export DDL Crapped Out in Version 1.1.3

    SO now the SQL tab for a table and the Export DDL option under the Tools menu are not working. The Export DDL option does nothing short of error our when trying to select individual options. (Getting a table or view does not exist error) The SQL tab for tables now no longer shows the associated constraints and in some cases no indexes either. The previous version didn't seem to have these problems. I really think the things that were working need to be verified to not be broken before releasing a new version. As an end user it's pretty frustrating to lose functionality when you think you are gaining new features.
    OS Version: Windows XP SP2
    Oracle DB: 10.1.5

    tnolte,
    I'm going to stick to this thread to respond to your queries.
    I see from (Re: [1.1.3.27.66] create ddl statement that you are running into the ora-942 errors. No-one in that thread mentions that they have switched to the latest release of SQL Developer, i.e. 1.2. Though both you and MRM posted after we released 1.2., so I assume you are. If not, that's a good place to start.
    Please can you confirm, that you are on 1.2 and that you are still running into this error? As mentioned we did have logged and now fixed, the ora-942 errors you mention, so I'd like to track down your specifics. It looks like a permissions issue.
    In terms of the new Export DDL:
    1. We had a request for a 1 button click to export everything for a single schema. To do this, after you have specified the files name and schema, all you need to do is click Apply and all objects, with all the data will be exported.
    So this is: Set file name, select schema, Apply.
    2. To export a specific category, I start by unchecking "Export Object Types", this unchecks all and I can then check only those I require, say tables and sequences. Now if I select Apply, ALL Tables and ALL sequences for that schema are exported.
    So this is: Set file name, select schema, uncheck Export Object Types, Check specific object type categories, Apply.
    3. Now, if you want to only export certain, say Tables or Sequences then use the filter tabs. The first is Filter Objects.
    If my Connection is for HR and I want to export HR objects, then there is no privilege issue:
    After you have taken the steps in #2 above, go to the Filter Objects tab, make sure that the user is HR at the top of the left hand panel and then click GO. (You can use the Object Type drop list on the right to filter for object types.)
    Shuttle the objects you want to the right and repeat for the next object type.
    If, your connection is HR, but you want to export[i] OE objects, and you have read/select access, then only those objects you have access to will display.
    If your access is HR, but you want to export object you have no access to, no objects are displayed.
    Is the ora-942 displayed for all your connections? Can you try another connection? Of all my connections, one displays the 942 and I will have a developer look into that. There does not appear to be a permissions issue.
    One last thing. If you just want to export the DDL of a selection of tables, expand the Tables node, ctrl select the tables you want the DDL for and use the context menu. There is a new Export option that allows you to export the tables to file, clipboard or the worksheet.
    Hope this helps.
    I will be doing a blog entry on this, this evening.
    Sue

  • DDL Statement Audit

    Dear All,
    My database version is 10Gr2 and Operating System is Solaris 10.
    In database level two parameters are set for auditing -
    Audit_sys_operation=true
    audit_trail=db
    I'm having some queries as follows -
    Is any database audit related information stored in the Os files, if it is then from where I can check it. As an example in case of Windows 'eventlog'.
    how to find whether the DDL audit is set or not in the current database. My intention is that if any ddl statement fired in the database I can find the user who has fired the statement and time when he/she has fired.

    H,
    DDl auditing is pretty simple, and you can set the audit log tobe either on disk, by setting audit_trail to OS and audit_file_dest to a valid directory or to atable in the DB (sys.aud$) by setting the audit_trail parameter to DB.
    After setting the parameters you would have to configure what and how to audit.
    You can start by reading the information here:[http://www.oracle-base.com/articles/8i/Auditing.php]
    Regards,
    Yuri

  • Export feature fails to include grants in DDL

    The "export" table feature does not include grants in the DDL, even if the "grants" checkbox is checked. This is consistent in versions 3.0 and 3.1. I do not believe this is a permission issue, as I am able to use the popup describe feature to list permissions for the same table within the same session. Is there something I'm missing, or is this a defect?

    I am not able to reproduce your problem. Can you provide some more info?
    1. How you are doing the export including the options you are using and whether you are exporting for the user that owns the connection or from "Other Users"
    2. The release of the db you are using.
    3. Generated script, preferably from export of a single object
    4. Output from the following queries using your own table_name and owner:
    select dbms_metadata.get_ddl('TABLE','table_name','owner') from dual;
    select dbms_metadata.get_dependent_ddl('OBJECT_GRANT','table_name','owner') from dual;
    Thanks,
    Joyce Scapicchio
    SQL Developer Team

Maybe you are looking for

  • How can I disable reading lists in Safari 7.0.6 ? Or other options to fix issue below (?)

    It used to be that you could go to preferences --> bookmarks, but now there is no bookmarks under preferences and the bookmarks tab itself has no preferences (that I can find). My issue, specifically, is that when I try playing a YouTube video, it mo

  • Amulet Display : Is it possible to pilot pixels one by one ?

    Hi, I would like to know if it is possible to pilot AMULET pixels one by one to generate a moving object ? (here is a ball) The purpose would be to do a ping pong game application on it. Commands will be two potentiometers from AI module giving order

  • Persistent swatch libraries not persistent in CS5

    I love the Middle Ages swatch library. But everytime I open Illustrator CS5 the library is nowhere to be seen, even though I repeatedly tell it to be "persistent". Funny thing is, when I go through the steps to make it persistent again, the option is

  • Mythtv music and image gallery unresponsive

    I'm running the Mythtv packages from testing, and find that I cannot play music or view images on the system. At some point in the past, these functions have worked.  I don't check them every time I upgrade, but went to use them the other day.  On th

  • IPhoto 8.1.2 Slow To Launch

    I have iPhoto 8.1.2 and a library with 16,437 photos in it. When I click on the iPhoto icon in my Dock, it takes about 23 seconds of iPhoto opening before I can actually interact with it and use it. The main window opens very quickly, but after 6 sec