Import specifications of centralized in Sqlplus scripts possible column format?

I want to centralise the definitions of column as

FORMAT of COLUMN TABLE_NAME A20 direction "foobar".
...

keep in a centralized definition file and import into several Sqlplus scripts (executing).

Is - it somehow possible?

Peter

Is - it somehow possible?

Yes put all definitions of column in a single file, you say coldef.sql

Whenever you need to use it in a script that is run with the help

Start coldef.sql

Max
http://oracleitalia.WordPress.com

Tags: Database

Similar Questions

  • Import text data into text with script level file fields


    I use Adobe 9 professional and have a level of javascript file import text into the existing fields of a pdf document.

    There are several fields with multiple lines of data to import.

    The folder level script does not work (but there is no error in the console showing when operating)

    I manually tested the file opening text with the following code in the console and the text file opens and fills text fields, so the text file must be correct:

    this.importTextData ();

    The following code is the folder level script that does not work:

    function mailmergeFunction()

    {


    Import the first line of data of "Mailmerge.txt".

    this.importTextData ("of/h/mailing/Jo Smith Things / Mailmerge.txt", 0)


    If (typeof cnt == 'undefined') cnt = 0;
    this.importTextData ("of/h/mailing/Jo Smith Things / Mailmerge.txt", cnt ++ % 4)

    }


    app.trustedFunction (mailmergeFunction);

    app.addToolButton ({cName: "Mailing", cExec: "mailmergeFunction ()", cTooltext: "Mailing", cEnable: true, NPO: 14});

    If anyone can please provide assistance, it will be more appreciated thanks.

    Try using an app.beginPriv () just before the importTextData statement and a statement of app.endPriv () afterwards. Don't forget to restart Acrobat after you change the JavaScript file.

  • Y at - it an 'if statement ' to SQLplus scripts?

    Is there something like an "if" statement that I can use in SQLplus scripts?

    For example, I want to check if the value of a certain variable is equal to '123 '.
    If so an ALTER TABLE command must be performed otherwise a DROP TABLE command.

    Peter

    You can use the function CASE and DECODE in SQL queries like this:

    SQL> select * from t1;
    
            ID
    ----------
           123
           222
    
    SQL> select decode(id, 123, 999, id) from t1;
    
    DECODE(ID,123,999,ID)
    ---------------------
                      999
                      222
    
    SQL> select case when id=123 then 999 else id end from t1;
    
    CASEWHENID=123THEN999ELSEIDEND
    ------------------------------
                               999
                               222
    
    SQL>
    

    However, you cannot perform DDL operations in SQL queries. You can achieve the same using PL/SQL using EXECUTE IMMEDIATE.

    Asif Momen
    http://momendba.blogspot.com

  • First hangs when importing specific files

    I started shooting the gameplay and I went to go change in PremiereCS6, but for what ever reason, I import my mp4 files bar does not respond then crashes shortly after. I tried to import other videos from video files with the same format as the ones (mp4s) crash but they don't crash just all my gameplay videos

    What is going on?

    Try a short clip and see if that fixes the problem. CS6 will be not updated so that the fix won't come from Adobe. If you want to Dropbox a clip, I'll see if it works on my CC system.

  • Is it possible to format my Satellite U300-111 without the CD

    Is it possible to format my Satellite U300-111 without the CD :_|

    It is perhaps possible to s

    Go to www.bootdisk.com and download a bootable Win98 floppy and run FDISK to remove all partitions non-dos.

    If you don t have a USB FDD drive, to see if you could boot from the memory stick USB boot Win98 disk files.

    But a question; Why you want to format the HARD drive? Have you ever created a Vista recovery DVDs?

  • I want to import Flash assets into AE, is this possible?

    A client wants to test me with his already animated flash file animation (several characters, backgrounds, etc.). Can I use any software I want, and I want to do the project of sequels, just because I'm more comfortable with it. Is it possible to export its goods off Flash and import it into After Effects, so that I can rig and animate in AE?

    Æ may only use published SWF files and with serious limits to that. Otherwise Flash supports exporting things like images, files HAVE and SVG, but of course even that will require specific preparations and additional exported files work in Photoshop and Illustrator. I'm afraid this is going to be much more complicated than you and your customer probably thought.

    Mylenium

  • SQLPLUS script execution vs dot comma

    Hello world

    is it possible to set up such sqlplus when a statement (for example, an INSERT) do not have a semicolon at the end (or and / at the beginning of the next line) an error is returned?

    Here is an example:

    INSERT INTO emp (emp_no, emp_name) values (5, 'John')

    INSERT INTO Emp_status (emp_no, status) values (5, 'full time');

    Running a script that contains these two lines with sqlplus won't the first home and will not give an error.

    By default, these human errors are handled silently through sqlplus.

    I'm pretty sure, there is no way to detect it, but in case I'm wrong, I ask the question.

    Best regards.

    Carl

    You need to set sqlblanklines on:

    SQL > set sqlblanklines on
    SQL >
    SQL > select * from the double
    2
    3
    4
    5 Select * twice;
    Select * of the double
    *
    ERROR on line 5:
    ORA-00933: SQL command does not complete successfully

    SQL >

  • Import a file or folder with scripts

    I read on app.project.importFile but I'm a bit confused with its use. Also, is it possible an importFolder? A script that could load an entire folder as images would be perfect for me. Ideally, all the same way you can drag a folder in ae containing a sequence of images.

    First, you must set an ImportOptions object:

    var myImportOptions = new ImportOptions();

    Then, you set the attribute file for the object file to import:

    myImportOptions.file = MyFile;

    Then you can import it:

    var myFootage = app.project.importFile (myImportOptions);

    If you have a folder (say MyAccount) object, you can get all the files in the folder like this

    myFiles var = myFolder.getFiles ();

    Then, you can create a loop to import all the files:

    for (var i = 0; i)< myfiles.length;="">

    myImportOptions.file = myFiles [i];

    app.project.importFile (myImportOptions);

    }

    Something like that.

    Dan

  • How can I get the control specifies a reference (by the script)?

    By what method of property can I control that specifies a reference? (See an example of a reference to the code snippet).

    When I reference (ControlReferenceConstant in the script), I can't get control of the reference points to. I guess it's done with the property ' reference control bound to. " But I don't know how to convert the variant to the control. Conversion to the control class does not work. (See excerpt below). Conversion does not return an error, but the reference is not valid.

    A few details: the variant contains a reference to a control and has a name matching [2]. The type of reference data is just as well [3]. But the reference is 0, which is of course invalid digital show (seen in the probe and indicator).

    An entire book would be to iterate through all controls (indicators included as well as items in clusters and berries). The label could be the first check. But because they do not have to be unique is not enough. As a second step could be verified that the ReferenceConstant is listed by the property "nodes of control."(delede contrôle) reference ".

    [1] LV12 helps ControlReferenceConstant properties:

    http://zone.NI.com/reference/en-XX/help/371361J-01/lvscript/controlreferenceconstant_p/

    [2] get the variant name with:

    Select 'Type of Show' in the context menu of indicator varying or

    OpenG VI 'get name of data '.

    NIs in \Utility\VariantDataType\GetTypeInfo.vi VI

    [3] get the Refnum Type in the variant with

    NIs in \Utility\VariantDataType\GetRefnumInfo.vi VI

    If you look at using the property, you will see that it actually returns the data type of the node, not the actual control. That's way, you cannot use the reference in variant - it's not a real reference to a control.

    I think it's all just an oversight that no one added to the relevant property to the node, but there is a simpler solution for you that I think should work, that should come to him on the other side - for each control in the public Service, get the property [] of control reference nodes and it look for the reference of your node. If you found it, the node made reference to this control.

  • Error: Import module XLRD in a custom script FDMEE

    Hello Experts,

    I'm trying to import a python "xlrd" module in a custom Script FDMEE. But he doesn't always lift error "No Module name xlrd".

    I tried to import the module by changing the path sys:

    Here is the code I tried:

    ===========================================================================================

    import sys

    "custModlePath = r'fdmContext ["INBOXDIR"] +"\\Excel_Sample\\xlrd""

    sys. Path.Append (custModlePath)

    import xlrd

    path = fdmContext ["INBOXDIR"] + "\\Excel_Sample\\."

    pathout = fdmContext ["INBOXDIR"] + "\\Excel_Sample\\Out."

    Book = xlrd.open_workbook (path)

    data_sheet = book.sheet_by_name ("Report")

    #data_sheet = book.sheet_by_index (3)

    start_row_count = 7

    end_row_count = data_sheet.nrows

    MyFile = open (fdmContext ["INBOXDIR"] + "\\Excel_Sample\\Out\\mapping.csv",'w")

    #myfile = open('SG\OUT\mapping.txt','w')

    all in start_row_count < end_row_count:

    #print data_sheet.row_values (i)

    lines = data_sheet.row_values (start_row_count)

    for the line data_sheet.row_values (start_row_count):

    MyFile.Write (STR (Line))

    MyFile.Write(",")

    MyFile.Write ("\n")

    start_row_count = start_row_count + 1

    MyFile.Close)

    =============================================================================================

    ERROR:

    2016-01-27 01:18:11, 294 FATAL [AIF]: error in CommProcess.executeCustomScript

    Traceback (most recent call changed):

    File "< string >", line 191, in executeCustomScript

    File '< string >", line 486, in executeCustomScript

    Folder "< string >", line 528, in executeJythonScript

    File "E:\FDMEE/data/scripts/custom/EXCEL_TO_CSV.py", line 6, < module >

    import xlrd

    ImportError: No module named xlrd

    2016-01-27 01:18:11, 336 DEBUG [AIF]: the connection of fdmAPI was closed.

    ===========================================================================================

    Appreciate your help!

    Thank you

    Ishti

    Hello

    I was able to get it working after some changes.

    Version compatible with Jython 2.5.1 FDMEE xlrd is xlrd 0.7.4

    Xlrd record is required to be placed inside the FDMEE server and the path is required to be updated in the script.

    Below the script just in case someone needs it:

    ===============================================================================================

    import sys

    custModlePath = fdmContext ["INBOXDIR"] + "\\Excel_Sample" # path in which is placed the folder xlrd

    sys. Path.Append (custModlePath)

    import xlrd

    path = fdmContext ["INBOXDIR"] + "\\Excel_Sample\\Mapping.xls" # path to the Source file

    pathout = fdmContext ["INBOXDIR"] + "\\Excel_Sample\\Out\\" # path to the .csv file

    Book = xlrd.open_workbook (path)

    data_sheet = book.sheet_by_name ("Report")

    start_row_count = 7

    end_row_count = data_sheet.nrows

    MyFile = open (pathout + "mapping.csv", "w" ")

    everything start_row_count<>

    lines = data_sheet.row_values (start_row_count)

    for the line data_sheet.row_values (start_row_count):

    MyFile.Write (STR (Line))

    MyFile.Write(",")

    MyFile.Write ("\n")

    start_row_count = start_row_count + 1

    MyFile.Close)

    =====================================================================================================

    Thank you

    Ishtique

  • Create and size the width of the path points... With JSX script possible?

    Hello

    I want to points of width of a path of script (for example, to create width marks on a path that can be manually changed by the width tool).

    This same question was asked in 2012:

    A 'Point width' on a PathItem script

    But it seems that it was not possible at the time.

    Is this possible in 2016?

    Thank you!

    M

    I don't think it is available for the script, but you can make a solution of crazy workaround where you write to the file

    C:\Users\{user}\AppData\Roaming\Adobe\Adobe Illustrator 20 Settings\en_US\x64\VariableWidthProfiles

    appropriate channels (pleasure).

    The string will look like a lot to one of the Actions:

    {/ collection7}

    {/Attributes}

    / VariableWidth_ProfileType 0

    / VariableWidth_Distances [22

    3020302e343338393431313730333537333732203120 (0.438941170357372 0 1)

    ]

    / VariableWidth_Widths [38

    302e303837393939373735393936373237203120302e30383739393937373539393637323720 (0.087999775996727 1 0.087999775996727)

    ]

    / CollectionName [14

    57696474682050726f66696c6531 (width Profile1)

    ]

    }

    /canEdit 0

    /canDelete 0

    }

    When the hex-decoded, they show all the necessary info, but I don't know what relates to what.

    Well, let's say if it is possible to write the text and the thing seems refreshed in the drop-down list of variable width (probably does not in this way), you have to apply the stuff to paths if necessary. Then you can write at least one action: the generic action triggered to be recorded by any changes made to the race is the action of 'The Stroke value' which, among other things, can affect the variable name as seen in the screenshot here.

  • How to move the read head to a position of specific marker to extend the script that?

    I wish I could change the playhead of a specific marker of my Panel, is it possible?

    There is no supported API that does what you requested.

  • Merge elements of form script possible?

    When I have a pathItem in my doc with several subPathItems how can I access the ability to activate the "form components merge"?

    Is it possible by script?

    I tried listener script with no luck.

    pathsComp.jpg

    Record fine for me. (Edit: the path must be selected.)

    // =======================================================

    var idcombine is stringIDToTypeID ("combine");.

    var desc2 = new ActionDescriptor();

    var idnull = charIDToTypeID ("null");

    var ref1 = new ActionReference();

    var idPath = charIDToTypeID ('Path');

    var idOrdn = charIDToTypeID ('Ordn');

    var idTrgt = charIDToTypeID ("Trgt");

    Ref1.putEnumerated (idPath, idOrdn, idTrgt);

    desc2.putReference (idnull, ref1);

    executeAction (idcombine, desc2, DialogModes.NO);

  • Determine the specific user permissions for a script

    With a bit of advice from LucD (thanks!), I finished a script simple last night that removes the clones, defines the network cards, takes snapshots, etc to automate a procurement process.

    Initially, I was running the script as a user with limited permissions but frustrating after a few hours, I found that I couldn't see some objects with this user.  I tried (briefly) extend the privileges on the role of the user has been assigned, but I couldn't get the right combination and finally gave up and executed the script as an administrator and it worked.

    I hope that someone will be there to tell me there is a quick and easy to run a Profiler against a script (or look at the server logs) which lists the specific permissions are required when running a script?  I suspect that would save a lot of time on trying to figure out which of the hundreds of privileges must be defined for the user running the script.  If not, I'm going to nuclear dawn somewhat undesirable to administrator.

    Any ideas?  Thank you all!

    The best source for starters is required for routine privileges.

    But take care of is not to create too many roles in your environment.

    For a presentation full privileges (with a short description), you can do

    $authMgr = Get-View AuthorizationManager
    
    $authMgr.Description.Privilege |Select Key,Summary
    
  • Change all the triggers table in the oracle schema by using a script - possible?


    Is it possible to modify all the triggers table in the oracle schema using a single script or modify each trigger table separately is the only way?

    A couple of alternatives come to mind.

    (1) you can go in SQL Develolper, go to the schema, expand the node for triggers and select all the triggers that you want to change.  Right-click and choose the fast DDL--> save spreadsheet.  Find and replace in the worksheet and then run the script.

    (2) if the trigger is the same for all 70 tables, you can move the PL/SQL out of the trigger and in a procedure in a package and just call the procedure of 70 triggers.  Now, the code is kept in the same place.  For new tables, you can add a call to the procedure and you are done.  If all 70 triggers are not the same, see if you can pass parameters to allow a generalized procedure that they can all use.

    You have not indicated what your triggers.  Are insert you columns of auditing, archiving data, inserting into a table of log, update another table or something else?  What type of trigger is it?  What you trying to accomplish with your triggers?

    Marcus Bacon

Maybe you are looking for