DIRECTORY DATAPUMP with variable Date

Dear friends,

I'm using oracle 11g R2. During export my database, I use the script to split my DMP files below:

export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1

export ORACLE_SID = ISLPRIM

Date = 'date + %d %b %Y'.' date + %I'. ' date + %m %p '

Dat = 'date + %d %b %Y'

mkdir Pei /asm/ISLDB.$Dat

sqlplus / as sysdba < <!

create or replace directory test_dir as ' / asm/ISLDB. $Dat';

EXIT;

expdp system/sys123 directory = test_dir dumpfile=exp1%U_Date.dmp diagrams = use PARALLEL = 4 = db_ logfile$ Date.log

Here my intention first to create today "date OF THE file" under "/asm" filesystem AND this dated, export FILE dumps are created. But my problem now, how can I create DIRECTORY DATAPUMP using a Date variable?

Need your help...

Hello

Use a shell script when you calculate the path/name of directory and script sql with the syntax to create the directory.

connect via sqlplus

Run the script

output

Delete the file temporary sql

Kind regards

Ionut

Tags: Database

Similar Questions

  • How to create an interactive PDF with variable data

    We basically have a "mail merge" to our list of customers with an interactive PDF file (including videos, menus, etc. - not only form fill and web links) to create a single PDF that contains several pieces of mail... one for each customer... with each total mail being customized for this customer.  Customizations would include different greetings (Bob dear, dear Dana, etc), as well as the different graphs based on unique data to the client, photographs, etc.

    I saw that InDesign and Acrobat Professional can be used to create an interactive PDF (such as http://tv.adobe.com/watch/ask-the-adobe-ones/14-calling-rufus-about-interactive-pdf-making).  But I don't understand how I can insert data into a database, csv, excel etc. in the PDF file file so that each page, or each set of pages in the PDF file can be customized.

    Can someone tell me a tool to use for this?

    Thank you

    Bob Kendall

    I'm new on this and didn't know InDesign could do a data merge, thank you for pointing that out.

    However, we currently produce hundreds of thousands of personalized daily electronic documents, a PDF file or Web user interaction (no, this isn't spam or junk mail).  Our customers have asked us to focus on the generation of personalized interactive PDFs and I fear that the volume could overwhelm InDesign.  My other concern is that all of our work performed automatically (we run hundreds every day) and it is not possible to have a person to sit down, then run InDesign manually for each job.  Our standard operating system need a certain version of unix (AIX or linux), although we can perform tasks under windows if necessary.  It seems, as InDesign will fit in this environment?  If not, is there something else out there?

    Thank you for your time.

    -Bob

  • table with variable data

    Hello

    I created my first website and must include a table that has a menu list, when I select each item in the list, it must show different results in the table below. (please see this example http://www.theorderofservice.co.uk/themes/templates/coreware/toos/main.ehtml?page=prices;)

    I placed my "spry validation select" and created the menu with the appropriate options, 5 in total. However, I can't work out how to get the fields below to change to each article.

    Advice on this topic are very welcome.

    Thank you

    That was done with JavaScript. If you view the source of the example page in your browser, you will see all the necessary code here. There is a big block of JavaScript inside the div "index_main" and an attribute of the tag select "onchange".

  • Is it possible to send variable data stored to an LMS with SCORM data?

    I'm saving a text field user input into a variable. That works fine, but I'm looking for a way to get this information from captivate so I can review it later. I thought I could possibly send along my LMS with scorm data and then get it back there. For example, when the user presses the button submit, I could use javascript to send this string variable to one of the values of SCORM.

    Does anyone have experience with this?

    Thank you!

    Kevin

    Ask yourself if it is based either on the LMS on Captivate? I have been using TEB much and see the result in the black table, without having to do something special.

  • Variable data merging with images and Excel

    I have a question about the installation of variable data files. I'll put up an excel file for a small number of badges of identity (like 50). The headers are all set up as variable data of regular text (first, last, agency, etc.), but on the last section the variable information is a small graphic (circle, square, triangle, etc...) How you configure in excel to recognize that this is a graph when you import into Indesign using the data merge feature.

    Is it still possible? I have attached the worksheet so that you can better see what I'm talking about.

    For the graphical content, add the @ symbol at the beginning of the name of the field in the header and put the path to the image in the cell of each record.

    I think it is covered in the help topic well enough, then you might want to go back and read it.

  • Direct local variable data VS

    Hey!

    I do LV Core 3 and hope someone enlighten me more... (Excersie 7-2 Solution more about 01:50 in the video to be more precise)

    According to this module, an indicator that is updated very frequently must be connected with direct data and not a local variable. Research assistance he said local variables to make copies of the data.

    It's a bit like this:

    1. I have an indicator that is 'coupled' to the X position of the memory.

    2. If I write a light directly he wrote directly to the X position of the memory.

    3. If I could write instead through a local variable... It would first create a copy of the data to write to the position indicator Y memory and then copy it to the X position of the memory?

    Thank you

    Peter

    Yes it's true.

    Now, imagine if you have a very large painting (and the elements of array must be States.map in memory).

    the first memory manager must find a place in memory where it can hold the table and you now have a memory more occupied by the local variable location.

  • The use of the repository variable date in filter expression

    Hi gurus

    I get the error using repository variable date in filter expression. I use the formula below

    filter (with the HELP of Fact.calls"Sun Time".) ("' Fiscal months end date" = VALUEOF ("month_start"))

    I am getting below error

    The formula syntax is not valid.
    [nQSError: 10058] A general error occurred. [nQSError: 43113] The message returned by OBIS. [nQSError: 22024] A comparison is performed between incompatible types. (HY000)
    Publ. SQL: SELECT filter (fact. Calls by using "Sun Time" ". Fiscal months end date"= VALUEOF ("month_start")) 'call DATA.

    Then I tried the below format I still get the error

    filter (with the HELP of Fact.calls"Sun Time".) "" Fiscal month end date "= DATE'(VALUEOF ("month_start"))") "

    The formula syntax is not valid.

    [nQSError: 10058] A general error occurred. [nQSError: 43113] The message returned by OBIS. [nQSError: 46047] DateTime (VALUEOF("month_start")) (VALUEOF("month_start")) value does not match the specified format. (HY000)

    Publ. SQL: SELECT filter (using "Sun Time" Fact.Calls. ("' Fiscal months end date" = DATE '(VALUEOF ("month_start"))') 'call DATA.

    Please let me know what I'm missing or what is the correct syntax of same using the repository of date variable.

    Thanks in advance

    Concerning

    @li

    filter (with the HELP of Fact.calls"Sun Time".) ("' Fiscal months end Date" = CAST (VALUEOF ("month_start") date))

    Try this

    mark, if this can help

  • Rename the files in a directory by adding the date and time

    Hello

    I am looking for a way to rename all the files that are in a directory with an add-on at the end with the date and time.

    for example:

    File1-> file1ddmmyyhhmi

    File2-> file1ddmmyyhhmi

    for example:

    $A = get-date-Format "yyyymmddhhmm.

    foreach-object - process ...

    Thank you.

    You can try something like this

    $A=get-date -Format "yyyymmddhhmm"
    Get-ChildItem "C:\folder" | %{
         Rename-Item -NewName ($_.Basename + $A + $_.extension) -Path $_.FullName
    }
    

    This assumes that the files are stored in C:\folder

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Possibility of variable data

    I'm creating a single sales for a customer presentation. They would like to be able to customize the presentation for each individual contact by customizing a title with their name, as the variable data. Is it possible to do this without having to resubmit a publication every time? Perhaps by linking the presentation to a HTML file that is updated with each sales pitch?

    You can use Web content Overlay to dynamically load the content using a URL.

  • quickly create with filter-date and initialize it with the current date

    Oracle BI 11 g

    Hello!

    I need to create guest of dashboard with filter-date and initialize it with the current date. How can I do?

    I tried to create the repository initialization block and add a variable. But I don't know what should I write to DataSource? I tried using the Current_Date, Now(), sysdate functions (for example, SELECT Now() FROM tbl_Calendar) but without results - when I pressed the button "Test"... "I have errors - something like 'Now() is unknown function' or 'incorrect syntax near keyword Current_Date.

    After that, I made to use presentation Variable in the command prompt, but also without success (())

    Please, help me.

    Use "Server Variable.

  • Error of variable data Type.

    I have a quick question. I'll put up a variable with a data type of number, when I declare the variable, it has a default value.

    I am trying to transfer data to the variable to an input text box but I get an error when I run the movie. I tried both a text entry box and a dynamic text box, but they both produce the same error.

    If I remove the variable declaration seizure figures series film and it updates the variable data but everything I read is not a good practice.

    I enclose the code, could someone please help me. I don't remember having such problems with ActionScript 2.

    Thanks for the help.

    Code:

    Shape: rectangle var;

    thick var: number = 2; line thickness
    var color: Number = 0x000000; Contains the value of color

    myButton_btn.addEventListener (MouseEvent.CLICK, onClick);

    function onClick(event:MouseEvent):void
    {
    Color = colorField_txt.text; (Line 11)
    thickness = lineThick_txt.text; (Line 12)
    Rectangle = new Shape();
    rectangle.graphics.lineStyle (thickness, color,. 5);
    rectangle.graphics.drawRect (10, 10, 100, 150);
    addChild (rectangle);
    }

    myButton_btn.buttonMode = true;


    ERROR MESSAGE:

    1067: constraint implied to a value of type String to a type unrelated to number. (Refers to line 11)
    1067: constraint implied to a value of type String to a type unrelated to number. (Reference to line 12)

    Thanks again for any help.

    Mike

    the text property of a textfield is a string, so to put this string in a variable of type number, you must first convert it to a number to
    for example.
    thickness = Number (lineThick_txt.text);

    ActionScript 2 performs this conversion automatically.

  • Problems with the date in the procedure on Oracle 11 g

    Hi gurus,

    I have some problems with the date under Oracle 11 g format.

    Let me explain the situation:

    When I start such a request
    Select to_number (to_char (to_date('01.04.2009','dd.mm.yyyy'), 'yyyy'))
    of sys.dual

    I had as a result 2009 under the number.

    When I do the same thing in a procedure of a package like this

    my_year: = to_number (to_char (to_date('01.04.2009','dd.mm.yyyy'), 'yyyy'));

    the my_year variable contains the value 9 instead of 2009.

    Can someone explain to me what goes wrong?

    I just tested with the evolution of the variable nls_date_format of environment for the session and the database is complete without success.

    Kind regards
    Björn

    Yes, it has everything to do with your environment settings.

    SQL> set serveroutput on;
    SQL>
    SQL> declare
      2    my_date date;
      3    my_zeitstempel varchar2(32767);
      4    my_tageswechsel float;
      5  begin
      6    my_zeitstempel := '01.03.1998 07:00';
      7    my_tageswechsel := .25;
      8    my_date := to_date (substr (my_zeitstempel, 1, 10), 'dd.mm.yyyy') + my_tageswechsel +1/24;
      9    dbms_output.put_line( my_date);
     10  end;
     11  /
    01-MAR-98
    
    PL/SQL procedure successfully completed.
    
    SQL> alter session set nls_date_format = 'dd.mm.yyyy hh24:mi:ss'
      2  /
    
    Session altered.
    
    SQL> declare
      2    my_date date;
      3    my_zeitstempel varchar2(32767);
      4    my_tageswechsel float;
      5  begin
      6    my_zeitstempel := '01.03.1998 07:00';
      7    my_tageswechsel := .25;
      8    my_date := to_date (substr (my_zeitstempel, 1, 10), 'dd.mm.yyyy') + my_tageswechsel +1/24;
      9    dbms_output.put_line( my_date);
     10  end;
     11  /
    01.03.1998 07:00:00
    
    PL/SQL procedure successfully completed.
    
  • With variable presentation month() function

    Hi all

    How can I use the MONTH() function in column answers, with variable presentation? I need to get the date month.
    I tried MONTHS (' @{tmp_date}' as date) but it doesn't work I get the error message.

    Thank you

    Hello

    If you select a single date value... go invite... then...
    Just keep filter on is invited to date column criteria of special relationship...

    Now, in the criteria take the same date column and apply * months ( column date ) *.

    So this column has the value selected and taken months of that particular date...

    try it this way...

  • See the time with the date in the cell?

    How do you not see time with the date in a cell? I tried all the settings I can find but without success.

    Using the numbers from version 3.6.2 (2577) - OS: El Cap 10.11.6

    I don't want to see that 12:00:00 AM

    Hi Russ,

    Inspector to format > cell, the parameters as shown below:

    Kind regards

    Barry

  • Print an e-mail with the date of the transmission

    Hi, I need to print an email I wrote to send as proof, but when I do that it shows the date of printing, NOT the date it was originally mailed. Is there a way to fix this? I hope that you can help us as soon as POSSIBLE! Thank you, Annie.

    anniesol said

    Hi, I need to print an email I wrote to send as proof, but when I do that it shows the date of printing, NOT the date it was originally mailed. Is there a way to fix this? I hope that you can help us as soon as POSSIBLE! Thank you, Annie.

    Problem is now solved! Choose the print option 'other measures' dropdown list allows email to be printed with the date of the shipment.

Maybe you are looking for

  • Minimize, maximize, and close is missing

    Just upgraded to 40.0 and minimize it, maximize, and close buttons are now extinct that maximized while. When not maximized, I can see the icons, but do not click on them.

  • Key keyboard control does not work do not

    Hello world I recently (about a month) has bought a new keyboard game v100. I plugged it to my Macbook Pro and my keyboard installation and at the beginning of each key program was very good. Then suddenly today, my command button on keyboards (which

  • Hard drive - how to clean

    How can I wipe my drive hard clean before I give my computer or sell it.  I don't want anyone to acquire information on my C"" drive.   Besides, I don't want to desstroy it as well.  Thank you

  • DDNS E4200 not updated

    Since 1.0.3 firmware, it seems that my DDNS is not with DynDNS updaing since the last update.  Someone at - it experince this problem?

  • Balancing of VMware with Nexus 1000v

    With the vmware puts vDS or vSS, I see many designs use the asset-liability approach for binding rising consolidation of NETWORK cards, IE a vmnic is active will fabric and a vmnic is passive will fabric B. This setting is configured in vSphere. Se t