How to Generate DDL Statement for PSAPROLL Tablespace on Oracle9i-HP_UX

Hi,
I am having SAP R3 46C installed with Oracle 9i on HP_UX 11i system.
I want to generate required DDL statements for PSAPROLL Tablespace/Rollback Segments as Backup/recovery purpose, before converting it into PSAPUNDO.
Its easy to find & store required DDL statements using OEM. But, I am not able to locate oemapp  (under $ORACLE_HOME/bin directory) application in the installation.
The current patch level of installed oracle is
I want to start OEM in HP_UX system, if it is possible.
otherwise,
I want to know the other alternatives to generate the required DDL statements.
Thanks in advance.
Regards,
Bhavik G. Shroff

Hi Stefan,
On windows Platform it is very easy to get DDL info for any object of database.
But, I was not able to start OEM in HP_UX system.
I have done my job complete using this good package of Oracle9i, in this way.
SQL> SET heading off
SQL> SET long 10000
SQL> SET pages 100
SQL> SELECT dbms_metadata.get_ddl(u2019TABLESPACEu2019,'PSAPROLLu2019)
FROM DBA_TABLESPACES;
O/P:
CREATE TABLESPACE "PSAPROLL" DATAFILE
'/oracle/RQ1/sapdata1/roll_1/roll.data1' SIZE 681574400 REUSE ,
'/oracle/RQ1/sapdata1/roll_2/roll.data2' SIZE 3145719808 REUSE
LOGGING ONLINE PERMANENT BLOCKSIZE 8192
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1048576 SEGMENT SPACE MANAGEMENT MANUAL
SQL> SELECT dbms_metadata.get_ddl(u2019ROLLBACK_SEGMENTu2019,'PRS_0u2019)
FROM DBA_SEGMENTS;
CREATE ROLLBACK SEGMENT "PRS_0" TABLESPACE "PSAPROLL"
STORAGE(INITIAL 10485760 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 32765
Also follow this useful links:
[DDL Generation--Oracle's Answer to Save You Time and Money|http://www.dbasupport.com/oracle/ora9i/DDLgen2.shtml]
[DDL Generation--Oracle's Answer to Save You Time and Money|http://www.dbasupport.com/oracle/ora9i/DDLgen3.shtml]
Good.
Thanks a lot.

Similar Messages

  • Generate "Drop-Statements" for DB-Objects

    Hi,
    is it possible to generate drop statements for the different DB-Objects?
    Most of the time when I generate DDL - Statements for Tables and Sequences I need a drop statement for this object to recreate.
    And is it possible to supress the schema-name?
    CREATE TABLE "SCHEMA"."TABLE"
    Regards, Juergen
    Message was edited by:
    Juergen.Schuster
    Message was edited by:
    Juergen.Schuster

    I apologize. I had interpreted the first posting in the thread differently than you. I had read "Most of the time when I generate DDL - Statements for Tables and Sequences I need a drop statement for this object to recreate" to mean that when the user generates the DDL for a table or sequence include a DROP statement prior to the CREATE statement. If these were automatically generated and the user accidentally ran the script, they may lose data in the table or the value of the sequence. That is why I was suggesting that the DROP statement generation be configurable when DDL for a table is generated.
    My mistake,
    Mike

  • How to generate xml-file for SAP Fiori (UI add-on) with Solution Manager 7.0.1?

    Hello Guru,
    could you please help with my issue with Fiori Installation.
    We want to install SAP Fiori Front-End (GW+UI) on the Sandbox system with SAP Netweaver 7.3.1. (SP14)
    Gateway component (SAP GW CORE 200 SP10) was installed without any problems.
    But I need to install UI-add-on (NW UI Extensions v1.0) and when I try to install it via SAINT, transaction said me that I need to generate xml-file for it (as in General notes for UI add-on mentioned).
    But I have Solution Manager 7.0.1 and in MOPZ for this version I do not have option  "install Add-on" as it written in Guide for ui add-on installation.
    Could you please help me with advice how to generate xml-file for UI add-on installation on SolMan v.7.0.1?
    If where is no way, but only to upgrade Solution Manager, maybe somebody could give me xml-file for your system (for NW 731) and I will change it to my needs, I will be very grateful!
    Thanks in advance for any help!!!
    Bets regards,
    Natalia.

    Hello Guru,
    could you please help with my issue with Fiori Installation.
    We want to install SAP Fiori Front-End (GW+UI) on the Sandbox system with SAP Netweaver 7.3.1. (SP14)
    Gateway component (SAP GW CORE 200 SP10) was installed without any problems.
    But I need to install UI-add-on (NW UI Extensions v1.0) and when I try to install it via SAINT, transaction said me that I need to generate xml-file for it (as in General notes for UI add-on mentioned).
    But I have Solution Manager 7.0.1 and in MOPZ for this version I do not have option  "install Add-on" as it written in Guide for ui add-on installation.
    Could you please help me with advice how to generate xml-file for UI add-on installation on SolMan v.7.0.1?
    If where is no way, but only to upgrade Solution Manager, maybe somebody could give me xml-file for your system (for NW 731) and I will change it to my needs, I will be very grateful!
    Thanks in advance for any help!!!
    Bets regards,
    Natalia.

  • How to write Select statement for this codition

    I need to check whether SGTXT contains BELNR value.
    SGTXT is a text field and It should be matched with BELNR
    How to write select statement for this.
    Select AUGBL AUGDT into t_BSAD
    from BSAD
    where SGTXT should have the given BELNR Value.
    Plz note : Here I cannot give as SGTXT = BELNR as coz BELNR have only 10 digits.

    Hi,
    data temp(12).
    concatenate '%' belnr '%' into temp.
    Select AUGBL AUGDT into t_BSAD
    from BSAD
    where SGTXT like temp.
    If belnr is having multiple values,just create a internal table as follows.
    types : begin of ty,
            belnr....
            temp(12),
            end of ty.
    data itab_ type standard table of ty.
    data wa type ty.
    loop at itab into wa.
    concatenate '%' wa-belnr '%' into wa-temp.
    modify itab from wa index sy-tabix transporting temp.
    endloop.
    Change your select statement accordingly.
    Kindly reward poits if it helps.

  • How to set DDL lock for a table

    OCI,how to set DDL lock for a table?

    Oracle acquires a dictionary lock automatically on behalf of any DDL transaction requiring it. Users cannot explicitly request DDL locks. Only individual schema objects that are modified or referenced are locked during DDL operations. The whole data dictionary is never locked
    DDL locks fall into three categories: exclusive DDL locks, share DDL locks, and breakable parse locks.
    see this link
    http://www.sc.ehu.es/siwebso/KZCC/Oracle_10g_Documentacion/server.101/b10743/consist.htm#i5281

  • How to generate an Interupt for DMA transfer from Counter on NI-PCI-6602

    dear guys:
          how to generate an Interupt for DMA transfer from Counter on NI-PCI-6602,and I have set the DMA and DMA_INT, and also the global interrupt register.
    but there is no Interupt generated in the Interupt callback function.And when I have set the DMA_INT and global interrupt register ,and then read the relevant register,the relevant bit is also 0.
         I suspect there is an Interupt register contral, like the MITE, you must write the value to 0xc4 for opening .
         there is some codes In my enclosure .What can I do?
    Attachments:
    TEST.C ‏21 KB

    dear Steven_T:
            the registers are In my enclosure ,if you have some ideas,please reply me  first time.thank you !
    Attachments:
    PCI6602.pdf ‏818 KB

  • TopLink does not generate SQL statements for inserting new objects

    TopLink does not generate SQL statements for inserting new objects. Why?
    Thanks in advance...

    Please see the response in
    Why does not unitofwork.commit write data to the database?
    Regards,
    Chris

  • How to generate BP number for the employee (ECC to CRM) ...

    Hi all,
    can any one give solution for ,how to generate BP number for the employee from ECC to CRM other than active status,as i downloaded employee data from ECC to CRM through ALE/IDOC,as only active employment status employees are got BP number generated,remaining also transfered to CRM but BP number is not generated for those employees,these employee records i can able to see in the HRP5580- HRP5587 tables.
    thanks in advance.
    vamshi.
    Message was edited by:
            vamshidher rao

    Hi,
    Or are you looking for this:
    SELECT serial_number, paaf.assignment_number
    FROM pay_assignment_actions paa, per_all_assignments_f paaf
    WHERE action_status = 'C'
    AND paaf.assignment_id = paa.assignment_id
    AND serial_number IS NOT NULL
    AND SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end_date;
    - Viky
    Edited by: Viky on Dec 17, 2010 11:42 AM

  • How To Generate Spool request for a SAP-Script form

    How To Generate Spool request for a SAP-Script form

    Hai   Rahaman,
    After getting the print preview of the SCRIPT.
    Click On  PRINT.
    Buttom of the page one spool request will be generated by system.
    Go to  SP01.
    You Can Find  SPOOL Reqest Number.
    Regards.
    Eshwar.

  • How to define a quota for a tablespace?

    I am having a problem creating users with Data Modeler. I can specify the user's default tablespace, but I can't figure out how to add the "QUOTA ... ON ..." clause. Yes, I can edit the DDL exported manually, but I would like to no need to remember to do that...
    Mike...
    Edited by: 896516 on Nov 10, 2011 1:05 PM

    Hi Mike,
    If you expand the node in the Browser tree for the User, a Quotas node appears. Adding Quota objects here allow you to define quotas for specific Tablespaces, which will be generated as QUOTA ... ON clauses in the generated DDL.
    David

  • How to generate Income Statement from Crystal Report

    Hi, Experts,
    I have:
    SAP BUSINESS ONE 2007A
    CRYSTAL REPORT 2008
    I have a problem with generating Income Statement related reports from CRYSTAL.
    For example,
    My revenue accounts are: '411000-00-00' and '412000-00-00', my expense accounts are: '510000-00-00' and '520000-00-00'.
    I'd like to generate the Income statement for Dec 1 - 31, 2008. Please advise how to generate this report. Thanks!
    Lorrie

    Hi, Experts,
    Currently, what I tested to generate the income statement is:
    1. find out the account detail table: JDT1. My database path: Company Name -> dbo -> Tables -> JDT1
    2. follow the standard report menu: add 'JDT1', show 'RefDate', 'ContraAct'; group by'Account', summarize by 'Account'.
    I have the following problems:
    1. with this method, I am not able to find the amount for each transaction. Because the amount does not have a name as 'RefDate' or some other fields.
    2. the 'Account' and 'ContraAct' are all shown as 'SYS00000001685'. It's sysmtem message but not the actual account number or contra account number.
    Thanks!
    Lorrie

  • How to generate columnar PDM for HANA?

    Hi Folks,
    I'm quite new to PowerDesigner and have been working on generating a HANA database from MS SQLServer.
    Currently I've been able to import a source SQLServer system as a Physical Data Model in PowerDesigner. I was then able to generate SQL DDL scripts to generate the DB manually in HANA, and I also watched a video about how to generate the DB directly in HANA via a connection to the repository which seems straightforward.
    The challenge that I'm current facing is how to alter the entire PDM to make *all* tables of type "column" rather than "row". Since SQLServer was the source system, rather than HANA, PowerDesigner appears to default to row store... (shouldn't PD's default storage type for HANA DB's be column store by default? This make substantially more sense than row store by default... but I'm digressing.)
    I can see how to do this on a table-by-table basis, but haven't yet figured out how to cascade this setting to the whole PDM. Any assistance would be very much appreciated!
    I also tried following this documentation, which didn't help much... it doesn't correspond with the windows/tabs/options that I'm seeing in PD 16.5 - http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc38058.1653/doc/html/oba1320752560336.html
    Thanks!

    Hi
    If what to want is globally change the Type of all the tables in a PDM, you can do it by using the List of Tables. You display the "Type" column in the grid and change the Type value from Row to Column while doing a multi selection
    veronique

  • How to automate DDL statements in batch or stored procedure?

    I'd like to write a start file or stored procedure to create synonyms for all tables owned by the current user as well as any to which the user has been granted access. However, no DDL statement like create synonyms is allowed in stored procedures. How can I solve this problem?
    I am very new to Oracle, can anyone recommend a site that publishes lots of PL/SQL scripts?

    Phyllis,
    It looks like a problem with permissions, as Narayan Archarya said.
    In order to test your code, I connected as user scott, copied your code, put two hyphens in front of the line that begins with execute immediate, compiled it, set serveroutput on, and executed it as:
    SQL> EXECUTE create_synonyms ('scott')
    It worked properly, displaying:
    cursor is opened.
    stmt_str = CREATE SYNONYM ADDRESSES FOR SCOTT.ADDRESSES
    rowcount = 1
    and continued in this manner, incrementing the row counts and displaying a stmt_str for each table. This confirms that there is no problem with the code. It has got to be a problem with privileges.
    To test the theory that it is a problem with privileges, I connected as system manager and created user abc, granting connect, resource, and create table to abc. I then connected as abc and created a table named abc. I then recompiled the create_synonyms, set serverouput on, and I executed it as:
    SQL> EXECUTE CREATE SYNONYMS ('ABC')
    Once again it worked properly, displaying:
    cursor is opened.
    rowcount = 1
    stmt_str = CREATE SYNONYM ABC FOR ABC.ABC
    rowcount = 1
    end
    PL/SQL procedure succesfully completed.
    I then tried executing it as (while still connected as user abc):
    SQL> EXECUTE create_synonyms ('scott')
    and I got:
    cursor is opened.
    rowcount = 0
    end
    PL/SQL procedure succesfuly completed.
    I tried the reverse, by connecting as user scott and executing as:
    SQL> EXECUTE create_synonyms ('abc')
    and got the same:
    cursor is opened.
    rowcount = 0
    end
    PL/SQL procedure succesfuly completed.
    I then connected as user abc and entered:
    SQL> GRANT SELECT ON ABC TO SCOTT;
    Then I connected as scott, set serveroutput on, and executed again as:
    SQL> EXECUTE create_synonyms ('ABC')
    and it worked:
    cursor is opened.
    rowcount = 1
    stmt_str = CREATE SYNONYM ABC FOR ABC.ABC
    rowcount = 1
    end
    PL/SQL procedure successfully completed.
    So, the conclusion is that there is a problem with privileges, probably related to the user executing the procedure and/or the user creating the procedure not having privileges to the tables created by the user that corresponds to the table_owner parameter passed to the procedure.
    This may not be the whole problem as far as permissions, but it is probably part of it.
    null

  • Track DDL statements for schema.

    Dear all,
    I want to track all DDL statements being performed on particular schema.
    I want to capture entire sql statement being run.
    How can I achive this.
    Please advice.
    Waiting for your reply.
    Regards,

    Hi all,
    I have used this trigger to track ddl.
    create table perfstat.stats$ddl_log(
    user_name varchar2(30),
    ddl_date date,
    ddl_type varchar2(30),
    object_type varchar2(18),
    owner varchar2(30),
    object_name varchar2(128)
    create or replace triggerDDLTrigger
    AFTER DDL ON DATABASE
    BEGIN
    insert into
    perfstat.stats$ddl_log
    user_name,
    ddl_date,
    ddl_type,
    object_type,
    owner,
    object_name
    VALUES
    ora_login_user,
    sysdate,
    ora_sysevent,
    ora_dict_obj_type,
    ora_dict_obj_owner,
    ora_dict_obj_name
    END;
    It's working fine ,
    But I want to capture entire sql statement into stats$ddl_log table.
    What to modify in table or trigger that I could achive this.
    Waiting for your reply.
    Thanks and regards...

  • How to find export statement for Import statement ?

    hi experts,
    I am having an IMPORT....from memory ID  statement in my program.
    how could i find the location of EXPORT ...to memory ID statement for the IMPORT statement.
    Pls help
    saravanan.

    Not possible if you are just trying to find it without knowing the links between your program and the other programs. You have to know all the objects that relate to the process that your program is automating and then you can probably dig into those related programs to see if there is an EXPORT statement there. But it is not as simple as double clicking on the IMPORT statement or doing a WHERE-USED on the memory ID.

Maybe you are looking for

  • How to Integrate BI 7.0 ABAP preview version into Netweaver 7.1

    Hi all, I have successful installed both BI 7.0 ABAP version and NetWeaver 7.1 & JAVA 7.1 ; version in a single system.both are working fine, but still I am unable to  Integrate BI system in to NetWeaver  7.1.How I see Web application reports in Port

  • Cannot login after installing 10.6.1 Update

    Hello everybody, i installed the 10.6.1 Update from Software-Update. After rebooting, i entered my password and then... nothing happens. It seems that i am logged in successfully, but nothing load up, i can still move my mouse, but the only thing i s

  • Outlook Dialog Triggered By iTunes?

    I keep getting a prompt from MS Outlook that looks like this: http://tinyurl.com/2fgxw5z ("Either there is no default mail client or the current mail client cannot full the messaging request....") I'm 99.9% sure it is being triggered by something tha

  • How to recover the clear history...?

    hi This is  *edited for privacy* i have by mistake , i have clear the history .. of all contact in skype. Now i wanted back to all the which i was clear history, is it possible to get all the history. Thanks Jai.macton

  • Mac FF and PC FF acting differently with site spacing

    Hi Everyone. I am building a site via dreamweaver and am having problems with how the site is displayed on a Mac and how it is on a PC. I currently tweaked the page to look right in Mac FF ( http://agrevl.com) and the spacing is now off in FF . For e