How creat script file on oracle

Hi all friends,
I have a problem, I find the following script
column today new_val dt
@dstables.sql
select to_char (sysdate, 'yyyymmdd') today form dual;
host exp userid = stc/stcmon@monbill file =backup_&dt..dm
log=backup_&dt..log parfile=tables.txt
host C:\Program Files\WinRaR\Rar.exe a -ag_yyyymm -y -inul
backup.rar backup_&dt..dmp backup_&dt..log
exit
Have you got any materials or user guide about this script file? I would like to understand more clearly than this one, For example, I want to know the meaning of key words in this script, and besides this, Is there any kinds of script files?.
I am interested in this filed. I want to create some my own script files for my products, please help me
Thank you very much
Thanks and best regards
Huy
[email protected]

This is a SQL*Plus script.
Read SQL*Plus User's Guide and Reference.

Similar Messages

  • How to create xml file from Oracle and sending the same xml file to an url

    How to create xml file from Oracle and sending the same xml file to an url

    SQL/XML (XMLElement, XMLForest, XMLAgg, etc) and UTL_HTTP.
    Whether that works for you with the version of Oracle you have, your requirements, and needs is another story. A little detail goes a long way.

  • How create XML file

    How create XML file using HTML / JavaScript. Please small example.
    Mykle.

    Various tools are available generate an XML document from a DTD.
    http://www.eclipse.org/webtools/community/tutorials/XMLWizards/XMLWizards.html
    http://www.altova.com/products/xmlspy/dtd_editor.html
    http://www.stylusstudio.com/xml_generator.html

  • How to migrate files from "ORACLE EPM 11" to OBIEE 10g / 11g

    Hi
    We are moving from ORACLE EPM 11 to OBIEE 10g or 11g .
    Can anyone suggest me how to migrate the files from ORACLE EPM11 to OBIEE 10g ?
    Regards
    Vinod.

    It would be a good idea to specify the version you are using.
    The general plan can be the following:
    A. On source db:
    1. Generate scripts for the tablespaces where the schema you want to export has segments (again use toad or ther tools)
    2.Generate scripts for the schema you want to export (use toad, dbms_metadata or other tools)
    3. Generate scripts for system grants, system roles, privileges you have on objects owned by sys, system, quotas on tablespaces
    4. If the schema has grants on sys objects that are not part of the default oracle install but were created later and are specific to that particular db (not a good practice, but it can hapen) and your application is dependent on them, generate scripts for them also (I have come across types owned by sys, when migrating an application with Websphere AS)
    5. export schema using exp owner=<SCHEMA_NAME>
    6. generate scripts for public synonyms and grants to public on object schema
    B. On target db.
    1. create tablespaces with generated scripts from A.1.
    2. create schema with generated scripts from A.2.
    3. grant all privileges from A.3.
    4. if non default objects on sys needed, create them with scripts from A.4., grant privileges on these objects
    5. imp with option fromuser=<SCHEMA_NAME> touser=<SCHEMA_NAME>
    6. create public synonyms, grants from A.6.
    7. check jobs - if you import with sys or system user, jobs will be imported under this users; drop jobs nad recreate jobs under your schema
    I hope I haven't forget anything and this helps...
    Ioan
    Edited by: ioan on 6.10.2008 13:00

  • Create XML file from Oracle DB

    Hi,
    I'm working in a task to create electronic billing for Mexico Rules, to do this; I need to create a XML source that will contain all the information requested from Oracle DB.
    For this reason, I'm looking how to create this XML file from Oracle DB.
    All this is for the new legislations rules in Mexico to use electronic billing.
    Please, if you have any reference about this, let me know.
    Thanks and regards.

    you may want to check out commands like xmlforest and xmlelement
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions221.htm
    copied from documentation
    Purpose
    XMLForest converts each of its argument parameters to XML, and then returns an XML fragment that is the concatenation of these converted arguments.
    •If value_expr is a scalar expression, then you can omit the AS clause, and Oracle Database uses the column name as the element name.
    •If value_expr is an object type or collection, then the AS clause is mandatory, and Oracle uses the specified c_alias as the enclosing tag. The c_alias can be up to 4000 characters.
    •If value_expr is null, then no element is created for that value_expr.
    Examples
    The following example creates an Emp element for a subset of employees, with nested employee_id, last_name, and salary elements as the contents of Emp:
    SELECT XMLELEMENT("Emp",
    XMLFOREST(e.employee_id, e.last_name, e.salary))
    "Emp Element"
    FROM employees e WHERE employee_id = 204;
    Emp Element
    <Emp>
    <EMPLOYEE_ID>204</EMPLOYEE_ID>
    <LAST_NAME>Baer</LAST_NAME>
    <SALARY>10000</SALARY>
    </Emp>

  • Creating script file!

    Dear All,
    I want to create a script file that refreshes all the sequences by getting the last value + 1 from the associated table.
    drop sequence radacct_seq;
    declare
    s1 INTEGER;
    begin
    s1:=1;
    begin
    select max(radacctid) + 1 into s1 from radacct;
    exception when no_data_found then s1:= 1;
    end;
    execute immediate 'create sequence radacct_seq start with ' || s1 || ' increment by 1 cache 20';
    end;
    drop sequence radcheck_seq;
    declare
    s1 INTEGER;
    begin
    s1:=1;
    begin
    begin
    select max(id) + 1 into s1 from radcheck;
    exception when no_data_found then s1:= 1;
    end;
    execute immediate 'create sequence radcheck_seq start with ' || s1 || ' increment by 1 cache 20';
    end;
    each of these commands runs individually, but when i write it into a file and save it as ".sql" and run from sqlplus @.sql it gives error. Kindly help to write this script.
    Regards,
    Imran

    Mrimran,
    I would recommend you stop asking this kind of questions.
    1 You don't provide an error message, as always
    2 You don't provide a four digit version, as always
    3 'Kindly help write the script' actually means Do my work
    It is about time after a plethora of doc questions, you grow up and stop outsourcing your work to a forum of volunteers
    Sybrand Bakker
    Senior Oracle DBA

  • Fail to create temp file in Oracle 10g on CentOS

    My disk is full so I delete six temp files and create only one, but when I execute this SQL give me this error. I know i have more than 4GB free space but i don´t know what problem is happen.
    ALTER TABLESPACE temp ADD TEMPFILE '/oracle/oradata/ral/temp01.dbf' SIZE 512m AUTOEXTEND ON NEXT 250m MAXSIZE 2048m;
    ERROR
    ALTER TABLESPACE temp ADD TEMPFILE '/oracle/oradata/ral/temp01.dbf' SIZE 512m AUTOEXTEND ON NEXT 250m MAXSIZE 2048m
    Informe de error:
    Error SQL: ORA-01119: error create database file '/oracle/oradata/ral/temp01.dbf'
    ORA-27044: no se ha podido escribir el bloque de cabecera del archivo
    Linux-x86_64 Error: 28: No space left on device
    Additional information: 3
    +01119. 00000 - "error in creating database file '%s'"+
    *Cause:    Usually due to not having enough space on the device.+
    *Action:+
    Could you help me plz?
    Thanx in advance

    993296 wrote:
    My disk is full so I delete six temp files and create only one, but when I execute this SQL give me this error. I know i have more than 4GB free space but i don´t know what problem is happen.
    ALTER TABLESPACE temp ADD TEMPFILE '/oracle/oradata/ral/temp01.dbf' SIZE 512m AUTOEXTEND ON NEXT 250m MAXSIZE 2048m;
    ERROR
    ALTER TABLESPACE temp ADD TEMPFILE '/oracle/oradata/ral/temp01.dbf' SIZE 512m AUTOEXTEND ON NEXT 250m MAXSIZE 2048m
    Informe de error:
    Error SQL: ORA-01119: error create database file '/oracle/oradata/ral/temp01.dbf'
    ORA-27044: no se ha podido escribir el bloque de cabecera del archivo
    Linux-x86_64 Error: 28: No space left on device
    Additional information: 3
    +01119. 00000 - "error in creating database file '%s'"+
    *Cause:    Usually due to not having enough space on the device.+
    *Action:+
    Could you help me plz?
    Thanx in advanceHi,
    please check space under /oracle/oradata/ral filesystem
    Linux-x86_64 Error: 28: No space left on device
    Regards

  • How  pass script file  in XI?(please help)

    hi all
    i have a scenario where i have to get data from r/3 as well have to pass script file kept in R/3 or XI  but script file is not SAPscript  a custom developed script.Input to XI will be data as well script file so  there are two datasources  getting input one is R/3 and other is script file and the output will contain a single xml file containing script and data from R/3.so my question is how to combine  two input sources using  different adpters rfc and file into one output format
    please do help in this context .
    please
    with regards
    subrato kundu

    Hi subrato,
    you can solve that with or without (<a href="/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible">Multi-Mapping without BPM - Yes, it’s possible!</a>) BPM
    In the <a href="http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm">SAP library</a> is a example for merging message with BPM.
    Regards,
    Udo

  • Help Required:How Upload Excel file Into Oracle Table Using PLSQL Procedure

    Please Help , Urgent Help Needed.
    Requirement is to Upload Excel file Into Oracle Table Using PLSQL Procedure/Package.
    Case's are :
    1. Excel File is On Users/ Client PC.
    2. Application is on Remote Server(Oracle Forms D2k).
    3. User Is Using Application Using Terminal Server LogIn.
    4. So If User Will Use to GET_FILE_NAME() function of D2K to Get Excel File , D2k Will Try to pick File from That Remote Server(Bcs User Logind from Terminal Server Option).
    5. Cannot Use Util_File Package Or Oracle Directory to Place That File on Server.
    6. we are Using Oracle 8.7
    So Need Some PL/SQL Package or Fuction/ Procedure to Upload Excel file on User's Pc to Oracle Table.
    Please Guide me wd some Code. or with Some Pl/SQL Package, or With SOme Hint. Or any Link ....
    Jus help to Sort This Issue ........
    you can also write me on :
    [email protected], [email protected]

    TEXT_IO is a PL/SQL package available only in Forms (you'll want to post in the Forms forum for more information). It is not available in a stored procedure in the database (where the equivalent package is UTL_FILE).
    If the Terminal Server machine and the database machine do not have access to the file system on the client machine, no application running on either machine will have access to the file. Barring exceptional setups (like the FTP server on the client machine), your applications are not going to have more access to the client machine than the operating system does.
    If you map the client drives from the Terminal Server box, there is the potential for your Forms application to access those files. If you want the files to be accessible to a stored procedure in the database, you'll need to move the files somewhere the database can access them.
    Justin

  • How create bath file in run time in java

    Hi all
    i run one bath file by using process class but i create bath file in run time in java .please help me with code.

    Dynamically Writing a batch file in Java is exactly the same as writing to a simple text file.... you just give it the file extension ".bat".
    If you can't write to a simple text file yet, you should probably buy a Java book and start working through it.
    regards,
    Owen

  • How to script File Menu "Create Archive of..."

    I have been trying to script the File Menu's "Create Archive" command but i can't figure out how to add the quote characters around the items name when only one item is selected for archiving. I have tried the escape character but applescript errors on it. I can get it to work if I use menu item number, but that varies by system.
    here is what I have so far.
    try
    tell application "Finder"
    activate
    select item "PicaX4:BackUp:"
    end tell
    tell application "System Events"
    tell process "Finder"
    -- create archive
    click menu item "Create Archive of \"BackUp\" " of menu 1 of menu bar item "File" of menu bar 1
    end tell
    end tell
    on error errMsg
    end try
    on a related topic, how do I wait for the completion of the archive process so I can then do something with the zip file?
    any feedback would be greatly appreciated.
    thank you, greg

    Since 'Create archive' basically creates a .zip file, it would be far easier to use a shell script to do this:
    do shell script "/usr/bin/zip -r /Volumes/PicaX4/BackUp.zip /Volumes/PicaX4/BackUp"
    If you still want to take the UI approach you should note that the menu item uses 'smart' quotes “and” and not the regular quotes.

  • Create XML file with oracle DDL information

    Hi,
    I am working on a architecture where I was asked to see find the solution for the following issue:
    we are building a ODS which gets a feed from an ORACLE source. But ODS will not have any access to that table and the data will be pushed by source system. The requirement is whenever the source system change the table structure (add a column,drop a column, change data type) that should be reflected in ODS stage table by droping and recreating a table with the structure that comes everyday from the source. My question is without getting the DDL file from the source, can we get the structure in XML file along with data? so that I can use the XML file to create the stage table everyday in ODS. I dont' want to use xmltype or clob/varchar2. The oracle table should be rows and column.
    I know XML SQL will be able to insert the xml to oracle table and oracle table can be extracted to XML type.
    Thanks,
    Partha.

    Hi,
    If you need to create a new command, you can use SAP Developer Studio. After deploy you will see it in
    System administration->system configuration->cm->user interface->Commands.
    There are examples about how to create commands.
    You need to create your own layout set. This one use a resource renderer, here you must setup the commands group that you created.
    After that, you create a navigation iview and layout set field you setup your layout set.
    Patricio.

  • How to transfer files using Oracle Managed File Transfer from Oracle EBS 12.1.3

    Hello,
    I'm looking for ideas to securely transfer files bi-directional between Oracle EBS 12.1.3 to IIS using Oracle Managed File Transfer and SOA.  Any help is greatly appreciated.
    Thanks

    Hi Hussain,
    In the Note 466649.1
    Edited
    I have installed R12.1.1
    Datafiles on installed on local file system /u01/EBS_DATa/*dbf, *.ctl, *.log
    doing non RAC to RAC conversion with ASM option,
    I am using ASM with RAC and created ASM disks (DATA, FRA, CRS) on Shared SAN disks between node1 and node2 which are DATA for CRD (control, redo and Data) files, FRA for archive files, CRS for cluster files while doing RAC instalation,
    now how i move my CRD on local file system /u01/EBS_DATa/*dbf, *.ctl, *.log to shared ASM disk DATA ???????
    Please describe with step wise,
    Thanks in advance.
    Regards,
    Vara
    Edited by: user13409653 on Jan 3, 2012 12:25 AM
    Edited by: user13409653 on Jan 3, 2012 5:10 AM

  • Can we create pdf files from oracle using UTL FILE

    i have sample code---
    create or replace procedure UTLTEST as
    f1 utl_file.file_type;
    begin
    -- Open a file in write mode
    f1 := utl_file.fopen('UTL_FILE_DIR1','NEWFILE.pdf','W');
    -- Write a line to a file
    utl_file.put_line(f1,'1. This is a test of UTL_FILE packages');
    utl_file.put_line(f1,'2. Oracle has added a new procedures in the package');
    utl_file.put_line(f1,'3. We will see all the procedure one by one');
    -- Close a file
    utl_file.fclose(f1);
    end;
    file is created but when i opened it ,it gives me error that file can not open
    is there any way to do it?

    Hi!
    you can see the following link ---
    http://forums.oracle.com/forums/search.jspa?threadID=&q=how+to+create+pdf+from+pl+sql&objID=f75&dateRange=all&userID=&numResults=15 .
    And also -- http://www.plpdf.com/ .
    Hope this will help u a bit.
    Regards.
    Satyaki De.

  • How to script data in oracle

    I moved data into my oracle database from sqlserver.
    I want to generate the insert statement scripts for the data in my oracle database.
    Please how can this be achieved?
    Thanks.
    Lauretta

    You can use sqlldr to insert data from text files exported from sql server.

Maybe you are looking for

  • GROUP BY is Not working in Reports Builder 9.0.4

    I have test run a query from both Jdev & SQLplus. It works fine, and I have used the GROUP BY in Reports before (that is what makes this so frustrating). The query looks something like this: SELECT a.programid, nvl(sum(b.fy06),0.00) sum06, nvl(sum(b.

  • Deletion of generated transformation programm

    Hi We have implemented includes in the expert routines in our transformation. After we have deleted a transformation with an customer include, we wanted to delete the customer include. This is not possible as the include is still used in a programm g

  • Conditional build tags get out of sync with source control

    Hi all, I work on a team with two other people and we use RH 7 and Microsoft Visual Source Safe. We've been having a problem with our conditional build tags where one person will add, rename, or delete a tag, and although the author checks the tags b

  • I have buy Adobe Creative Cloud full on Black Friday and i'm still on trial

    Hi, i had try to deinstall and reinstall all Adobe Apps, and i still on trial.. We i try activate it, i can just enter a serial code. Help me please !!

  • ICal syncing with deletion of events

    I'm using iCal between my iOS devices, and when I delete events on my iMac, they aren't deleted from my iPhone. How can I ensure that my events are syncing accurately? Thanks!