UCCX scripts, working with variables (variables to type?)

Hello

I've got script of unilingual IVR which distributes calls in two separate CSQ (services and logistics), based on the entry of the appellant in the IVR menu. Each QSC contains several agents. There is flow under script that checks if a current day is holiday (similar to the example of Cisco HolidayCheck.aef)

Now, I have to extend this script and make it multilingual. Many aspects in the script as dates.xml to check, name of the CSQ (each lang have services and logistics), lang for IVR guests are exactly the same files wav localized to specific national environment in different directories called.

My idea is to parse the input (IVR or by number called country-specific) and on this basis set a variable named input_lang (string) with the values 'en', 'sk' or other). Then set other variables for good localization based on this variable input_lang.

I have customization variables:

input_lang (String) = «»

holiday_datelist (Document) = [DOC]

ivr_lang (language) = [L]

CSQ_service (String) = «»

CSQ_logistics (String) = «»

When I set input_lang variable, for example "sk" (Slovak), I have other variables defined as:

Set holiday_datelist = "DOC [dates -" + input_lang + ".xml]".

Set ivr_lang = 'L []' + input_lang + '] '.

Set CSQ_service = '-CSQ_servis' + input_lang

Set CSQ_logistics = '-CSQ_logistics' + input_lang

But this result in this strange values (not so weird, because they are all 'String-like')

holiday_datelist = "DOC [dates - sk.xml]" instead of DOC [dates - sk.xml]

ivr_lang = "L [sk]" instead of L [sk]

etc... but the names of CSQs are also strings and the results are OK

The script stops and throws a value unidentified exception / error variable.

Y at - there no way how to fix string variable as lang/document as a representation? I think I have to get rid of these quotes in the beginning and the end of the value. I want only to concatenate the values of strings void variables based on each lang.

Or me as a result of the wrong way and everything to do in a different way?

Thank you very much for all the advice!

(Improved UCCX, version 5.0.2)

When I set input_lang variable, for example "sk" (Slovak), I have other variables defined as:

Set holiday_datelist = "DOC [dates -" + input_lang + ".xml]".

Set ivr_lang = 'L []' + input_lang + '] '.

Set CSQ_service = '-CSQ_servis' + input_lang

Set CSQ_logistics = '-CSQ_logistics' + input_lang

I think that you are up to something and just need to make some minor changes.

1. instead of assign the directory "dates - sk.xml" to the document variable, assign it to a string that points to the file name and the relevant path. Then initialize the document variable by using the step to "create a Document file. This should help you over any bumps with typcasting.

2. for the language, it would be logical to use a statement 'switch' as follows:

Channel switch (input_lang)

Connection: Slovak

Set ivr_lang = L [sk]

Connection: en - uk

Set ivr_lang = L [en - uk]

...

Maybe it's not as effective as the road you have decided to take this point but it would work. The only time where I messed up with the support of several languages, I used the trigger JTAPI. It will work for you, if you have walked the road of the language based on the "called" number (as you suggest one way possible, you would take). In this way, you can have several triggers pointing to the same application and the variable of language may already be set on the trigger. You still wish to create/edit your variables. You'd probably want to focus on the expression editor methods. toString() and. getLanguage().

HTH.

Kind regards

Bill

Tags: Cisco Support

Similar Questions

  • My script works with a #1009 error?

    Hi all

    I spent so much time trying to understand and I do not understand, I have this script where the error #1009 is displayed continually, the stange thing: my script works correctly and I want to get quotes off the coast of this error. When my script is 'correct', which means, no more errors appear, the script does not work with the external swf. The target of the red error 'movie01' in the script, but this reference was already used successfully, why not this one?

    This script works but with the error #1009:

    var movie02:Loader = new Loader();

    movie02. Load (new URLRequest("test/seq.swf"));

    addChild (movie02);

    movie01.addEventListener (Event.ENTER_FRAME, seq01);

    function seq01(main:Event):void {}

    var movie01:MovieClip = main.target.content;

    If {(this.currentFrame is 15)

    movie01. Play();

    }

    If (movie01.currentFrame == 150) {}

    This.Stop ();

    }

    }

    Thank you

    Alain

    :

    var movie01:Loader = new Loader();
    movie01.contentLoaderInfo.addEventListener (Event.Complete, LoadComplete);
    movie01. Load (new URLRequest("test/seq.swf"));
    addChild (movie01);

    movie01.contentLoaderInfo.addEventListener (Event.Complete, LoadComplete);
    function loadcomplete(e:Event) {}
    movie01.addEventListener (Event.ENTER_FRAME, seq01);
    }

    var exectedPreviously:Boolean

    function seq01(main:Event):void {}
    var mc:MovieClip = MovieClip (main.target.content);
    If (this.currentFrame == 15 &! executedPreviously) {}

    executedPreviously = true;
    MC. Play();
    }
    If {(mc.currentFrame is 150)
    This.Stop ();
    }
    }

  • Fixed loop element did not work with Variables

    Hi all

    I'm developing an application of classical planning using EMP 11.1.2.2

    I am writing a business rule in which I need to iterate "N" times. This "N" value is always stored in a variable of execution.

    The work rule absolutely perfect, if I have a static value in the field 'Value' of loop fixed.

    In case if I have provided variable execution in the field 'Value' of fixed loop the loop doesn't have to iterate. However the rule validated and successfully deployed.

    Please note that I develop my business rules using calculation EMP Manager.

    Following Code works

    {index} = 10;

    LOOP (10)

    Following the Code didn't work

    {index} = 10;

    LOOP ({index})

    Hello

    You can't put a variable in the loop control, but you can break after some moments of iterations. Here's how:

    var var1 = 0;

    var varbreak;

    DIFFICULTY ([difficulty your members here])

    LOOP (1000000, varbreak)

    [member block here] (

    var1 = var1 + 1;

    If (var1 is 10)

    varbreak = 1;

    endif

    [Your math here];

    )

    ENDLOOP

    ENDFIX

    See you soon,.

    Alp

  • work with variable

    Hi all

    In the source table, I colum_flag, I want - after succesfull load into target upadte with currentdate using the variable.
    How can I create and update with currentdate variable?
    Thank you o much
    G.

    Hello

    Create a variable with the following query to refresh Alfanumeric CURRENT_DATE name
    SELECT THE DOUBLE TO_CHAR(SYSDATE,'DD-MM-YYYY')
    Use any logic diagram of Oracle for this Variable.

    Create a package, drag this variable REFRESING mode and use it as you wish to use.

    Thank you
    Fati

  • Will Richard Kains symmetry filling scripts work with Photoshop CC.

    I see that the tesselations 17 aircraft are already in the menus for filling of symmetry, but they do not produce the correct tesselations for me.

    I'm probably not using the correct form for models

    Documentation?

    Jim

    Symmetric Designs - YouTube

  • Muse crashes when working with text

    While working with Muse, I'll type some text in a box using the Typekit Lato. When I click outside of the text frame, I get this error and then closes Muse:

    Screen Shot 2015-02-26 at 14.57.08.png

    Any suggestions or is this something that should be fixed with the next update?

    An update was released today, please try to update of Muse and then check if you still face the same problem.

    Thank you

    Sanjit

  • Problem with variables not excluding search terms not

    People,

    I'm having a problem with variables, when used in topic titles.

    We produce two distinct versions of a webhelp. The text is almost exactly the same, but the product has a different name in each version. In one version, he is called FLOW; in another, it is called Service generator. We use the user-defined variables to control which name is used to identify the product, when we generate the webhelp.

    So, I have (for example), a subject that begins with the heading:

    Construction of a FLOW script

    where the text occupied by 'FLOW' is provided by a variable with two values - FLOW and Service constructor.

    So when I generate the generator using the web Service version, I put Robohelp using the Service Builder variable defined, and all contained text and the table of positions generate fine; FLOW is nowhere to be seen.

    But when I type "FLOW" in the search box, the system identifies each of the three subjects that are built as in the example above, with a topic title that contains the variable used to set the name of the product. In addition, it displays in the search results using STREAM in the title of the topic, not Service Builder (but when I open the topic, the text in the header is rendered correctly).

    In addition, the system uses the "FLOW" and not "Service Builder" in the headings found by the search, regardless of what research the term is used.

    Everyone comes through this? Nobody knows how to solve this problem, please?

    Thanks in advance,

    NA.

    What version of RoboHelp do you use?

    I use the 2015 Release version. It used to be version 11.

    In the Release version of 2015, my topic Properties dialog box looks like this:

    I think that version 11 may have introduced the possibility of having a variable in the title of the topic. If your version is older and does not seem to offer a way through the dialogue box to deal with this, I was wondering if you could fudge by manipulating the code manually. For example, I see that when I use a variable in a topic title, I end up with this:

    So I was wondering if you could add just in the bit that reads:

    < InsertVariableNameHere >

    Of course, you want to replace the text InsertVariableNameHere with the actual name of your variable.

    It can fail miserably because the process of generation of RoboHelp doesn't know how to cope. But in fact, it might work! You won't know until you try.

    And even if it fails, I may be able to offer another approach that you will overcome the problem.

    See you soon... Rick

  • Call Oracle procedure with variable

    Experts,

    I pass arguments through script to Oracle procedure, use the input value and pass to the procedure.

    Oracle procedure Gets the input value, run the query, and all connect to the log file.

    I am facing a few challenges, seems to be the error of syntax or data type

    1. even if I pass all the script parameter still run complains of wrong number or type of arguments.

    There are three numbers followed by a date variable

    2. how to pass a variable value with the INTERVAL function, it should take the value of the variable lThird for example "" AND date > = date + INTERVAL '30' MINUTE; "but somehow, after trying different variants still get error like interavl not valid."

    3 see someone more changes to this?

    ! / bin/ksh

    $1 = 10;

    $2 = 30;

    3 = $50

    $4 = '20150113';

    echo "Oracle procedure in progress"

    (

    set linesize 100

    pkg.proc exec ($1, $2, $3, $4);

    ) > $logFile

    If [$? == 0]

    then

    EXIT_VAL = 0

    = Package/oracle procedure =.

    CREATE or REPLACE PACKAGE pkg

    AS

    procedure proc (lFirst in number,

    lSecond in numbers

    lThird in numbers

    date IN oven,

    curReturn to sys_refcursor);

    Pkg of END;

    /

    CREATE or REPLACE PACKAGE pkg BODY

    AS

    PROCEDURE proc (lFirst in number,

    lSecond in numbers

    lThird in numbers

    date IN oven,

    curReturn ON sys_refcursor)

    IS

    BEGIN

    OPEN FOR CurReturn

    SELECT date,

    emp_id,

    first name,

    last_name

    Employees

    WHERE Emp_id in (lFirst, lSecond)

    Date AND > = date + MINUTE INTERVAL "(lThird)"

    AND date = TO_DATE (oven, 'YYYYMMDD')-1;

    END proc;

    Pkg of END;

    /

    Error:

    PLS-306: wrong number or types of argument in the call to proc

    Hello

    With regard to your needs:

    My current problem is

    1. how to store the SELECT results in the log file, ask has several columns with multiple lines

    2. what happens when SELECT brings out no line?

    I have re-used, corrected and adapted to your procedure:

    Package:

    CREATE or REPLACE PACKAGE pkg

    AS

    PROCEDURE proc (lFirst in number,

    lSecond in numbers

    lThird IN varchar2,

    curReturn to sys_refcursor);

    Pkg of END;

    /

    CREATE or REPLACE PACKAGE pkg BODY

    AS

    PROCEDURE proc (lFirst in number,

    lSecond in numbers

    lThird IN varchar2,

    curReturn ON sys_refcursor)

    IS

    BEGIN

    OPEN FOR CurReturn

    SELECT *.

    WCP

    WHERE empno in (lFirst, lSecond)

    AND hiredate > = TO_DATE (lThird, 'YYYYMMDD');

    END proc;

    Pkg of END;

    /

    Shell script: test_sql.sh

    #! / bin/ksh

    V_user = scott

    V_pass = Tiger

    echo "Oracle procedure in progress"

    Req ='sqlplus-s $V_user / $V_pass<>

    var refcursor rc

    exec pkg.proc ($1, $2, $3,: rc)

    print the rc

    output

    EXPRESSIONS OF FOLKLORE"

    echo "$req" > logfile$ $

    PS:

    (1) you must put the name of your user/passwd name and table (I used the scott/tiger schema by default with emp table). This is just to show how to retrieve a refcursor output in a script.

    (2) I used logfile$ $ as output file; You can use any other file or method name to redirect the output to a file

    Call us at:

    19000101 7934 7900 test_sql.sh

    PS: As noted in the previous posts, you cannot define a VARIABLE of type DATE in sqlplus (or a Unix script); You can send a string and perform the conversion in the SQL section.

    If no line is not recovered, you get the following in the log file:

    PL/SQL procedure successfully completed.
    
    no rows selected
    

    HTH.

  • Linux Script - ORACLE_BASE environment variable is not shipped

    Hello

    I created a Linux script to execute a SQL statement and have several variables being passed in the script.  The script executes the SQL statement with no problems, but I see the following message in the log file:

    [/ u01/app/oracle/scripts/insert_asm_disk_usage.sh[8]:. : line 87: dbhome: not found

    ORACLE_HOME = []? ORACLE_BASE environment variable since it is not defined

    information is not available for the current user ID oracle.

    You can set ORACLE_BASE manually if necessary.

    The content of the script is:

    #!/bin/ksh
    
    
    # Declare variables
    export ORACLE_SID=$1
    export ORACLE_BASE=/u01/app/oracle
    BACKUP_MOUNT=$2
    export ORAENV_ASK=NO
    . /usr/local/bin/oraenv
    . $HOME/.env_variables
    HOST_NAME=$(hostname -s)
    LOG_DIR=/${BACKUP_MOUNT}/logs
    umask 022
    
    
    # Login to SQL Plus and execute the script
    sqlplus -s / @$SCRIPT_DIR/insert_asm_disk_usage.sql ${HOST_NAME}
    

    As I said, the script and SQL statement runs without any problem.

    Is there anyway around this message?

    Thank you

    Frank

    Frank.anellia wrote:

    I changed the script and way out the variables ORACLE_HOME and ORACLE_BASE instead of using .env_variables:

    1. #! / bin/ksh
    2. # Declaring variables
    3. export ORACLE_BASE = / u01/app/oracle
    4. export ORACLE_HOME=/u01/app/oracle/product/11.2.0/oracle
    5. export ORACLE_SID = $1
    6. BACKUP_MOUNT = $2
    7. Export ORAENV_ASK = NO
    8. . / usr/local/bin/oraenv
    9. #. $HOME/.env_variables
    10. HOST_NAME = $(nom d'hôte-s)
    11. LOG_DIR = / ${BACKUP_MOUNT} / logs
    12. MAIL_LIST =' [email protected]'
    13. umask 022
    14. # Connect to sqlplus and run the script
    15. sqlplus-s / @$ SCRIPT_DIR/insert_asm_disk_usage.sql ${HOST_NAME}

    It's not really help make the portable script, but no idea why it does not work with what is in the .env_variables?

    If you (you should be) using oraenv, do not set the oracle environment variables yourself. I put the following in each shell script that calls everything about oracle:

    # ------------------------------------------------------------------------

    # set the environment for ORACLE_SID

    # We assume that parm $1 was the name of the database, we work collaboratively with

    #

    export PATH = / usr/local/bin: $PATH

    export ORACLE_SID = $1

    Export ORAENV_ASK = NO

    . oraenv

    unset ORAENV_ASK

    I have seen the error that you report it.  I do remember not the exact fix, but what I do recall is that I found exactly the fix actually reading the oraenv script, focusing on where this particular error message is issued, then back followed the logic of there.  If I can do it, if you can, and it will be an exercise in good learning on several levels, not all of which relate to this specific problem.  I think SB has already referred to this approach.

    What else I remember correctly, is that the fix had to do with permissions... I think it was that I was connected the operating system with an account that did not have permissions to run certain process called oraenv.  But again, read the script and you should be able to get by.

  • Value data named to bind variables of Type table

    Hello

    I have a display object with a query that has a where clause, clause which use 'en' (e.g. Select projTitle PROJECT where PROJID in: projIds)

    'projIds' is a variable of type table of liaison.

    I'm moving in that variable binding expects (an array of projIds that can be used by the sql statement), and I did not. I'm calling a method in the bean to support the named child tag data from the action tag in the pageDef file links section.

    Can you give me the proper syntax and object Array as this variable binding will accept, please? Maybe I used the wrong NDType? I found a couple of different options, but none that I can make it work.

    The page definition file:

    < action IterBinding = "ProjPendingApprovalByApproverVO1Iterator" id = "loadPendingApproval".

    InstanceName = "SystemAMDataControl.RooProjIdArrayt.ApprovalAM1.ProjPendingApprovalByApproverVO1"

    DataControl = "SystemAMDataControl" RequiresUpdateModel = "true" Action = "executeWithParams" >

    < NamedData NDName = 'PROJID"NDValue =" #{dashboard.projIdArray} "NDType="oracle.jbo.domain.Array"/ >"

    < / action >

    Application of VO:

    SELECT ProjectEO.PROJ_ID,

    ProjUtnDtlEO.UTN_TYPE,

    ProjectEO.PROJ_SHORT_DESC,

    ProjUtnDtlEO.PROJ_DTL_ID,

    ProjectEO.PROJ_OWNER,

    VEmployeeInfoEO.FIRST_NAME,

    VEmployeeInfoEO.EMPLOYEE_ID,

    VEmployeeInfoEO.FIRSTNAMELASTNAME,

    VEmployeeInfoEO.LAST_NAME,

    VEmployeeInfoEO.LASTNAMEFIRSTNAME,

    ProjApprovalDecisionDtlEO.PROJ_APPROVAL_DECISION_DTL_ID,

    ProjApproverEO.PROJ_APPROVER_ID,

    ProjApproverEO.APPROVER_LEVEL,

    ProjApproverEO.APPROVER_NUMBER,

    ProjApproverEO.APPROVER_ROLE,

    ProjApprovalDecisionDtlEO.COMMENTS,

    ProjApprovalDecisionDtlEO.PROJ_APPROVAL_DECISION_ID,

    ProjApprovalDecisionDtlEO.LASTUPDATEDBY,

    ProjApprovalDecisionDtlEO.APPROVEDDATE,

    ProjectEO.SYS_STATUS,

    ProjApproverEO.LASTUPDATEDBY AS LASTUPDATEDBY1,

    ProjApprovalDecisionDtlEO.PROJ_APPROVAL_TYPE_ID,

    ProjStatusLkpEO.STATUS_DESC,

    ProjStatusLkpEO.PROJ_STATUS_ID,

    ProjectEO.PROJ_CATEGORY_ID,

    STRING. APPROVAL_DESC

    OF PTS. ProjectEO PROJECT,

    PTS. PROJ_UTN_DTL ProjUtnDtlEO,

    PTS. V_EMPLOYEE_INFO VEmployeeInfoEO,

    PTS. PROJ_APPROVAL_DECISION_DTL ProjApprovalDecisionDtlEO,

    PTS. PROJ_APPROVER ProjApproverEO,

    PTS. PROJ_STATUS_LKP ProjStatusLkpEO,

    PTS. Channel PROJ_APPROVAL_CHAIN_LKP

    WHERE ((ProjectEO.PROJ_ID = ProjUtnDtlEO.PROJ_ID (+))

    AND (ProjectEO.PROJ_ID = ProjApprovalDecisionDtlEO.PROJ_ID))

    AND (ProjectEO.PROJ_ID = ProjApproverEO.PROJ_ID)

    AND (ProjectEO.SYS_STATUS = ProjStatusLkpEO.SYS_STATUS)

    AND (ProjectEO.PROJ_OWNER = VEmployeeInfoEO.EMPLOYEE_ID)

    AND (ProjApprovalDecisionDtlEO.PROJ_APPROVER_ID = ProjApproverEO.PROJ_APPROVER_ID)

    and PROJAPPROVEREO. PROJ_APPROVAL_CHAIN_ID = STRING. PROJ_APPROVAL_CHAIN_ID

    AND (ProjApprovalDecisionDtlEO.PROJ_APPROVAL_DECISION_ID = 0)

    and PROJAPPROVEREO. APPROVER_LEVEL <>2

    and PROJAPPROVEREO. PROJ_ID in: PROJID

    Thank you!


    Please refer to http://www.jobinesh.com/2010/09/using-bind-variable-for-sql-statements.html?m=1 for an example of this.

    Timo

  • How to add a variable of type text in a package?

    Hi guys,.
    After a few years as an OWB guy, get my feet wet with ODI. This day - love her!

    In any case, a question. If I want to add a variable of type text as a step in my package - how should I do this? I see how to refresh based on a query, but did not understand how to get this query to include the current value of the variable, and I have a tired, a number of things in the Variable value box assignment hat that I thought might work out but without success.

    -Is it possible?

    See you soon,.
    Mike

    I can do a ' Select #variable_name | "new information"double"as the update one application for my variable and concatenation work?

    Yes, you can

    If the #variable is text / alphanumeric then use single quote around like below

    SELECT '#V_NAME' |' INDIA "OF THE DOUBLE

  • Problems with variable/table length

    Yes, me again.

    Well, everything seems to work in this script I have.  In this regard, the vmsStillOn.length should return the number of slot machines tension on a host.

    This seems to work great until there is only 1 host on the computer.    Here's what happens: if I have 2 virtual machines on a host, length returns the form 2.  If I have a virtual machine turn off, the length does not at all appear and I don't know why.   I'm sure there is a better way to make a counter, but that's what I have so far working with.  Thank you HERE!

    {}

    Start-Sleep - #Wait 15 seconds, 15 seconds and check again!

    $poweredOn = $FALSE

    #Start - Sleep - seconds 10

    {foreach ($machine in $hosts)

    SE connect-VIServer-server $machine - user $user-password $pass

    {color: #ff0000} $vmsStillOn = Get-VMHost | Get - VM | where {$_.} PowerState - don't "PoweredOff"}

    Disconnect-VIServer-confirm: $FALSE

    Write-Host 'Is number of virtual machines' $vmsStillOn.length

    If ($vmsStillOn.length & gt; 0) {}

    $poweredOn = $TRUE

    breaking

    }

    }

    } while ($poweredOn = $TRUE)

    When there is only 1 guest runs the $vmStillOn variable is not an array of VirtualMachineImpl objects, but a single object of VirtualMachineImpl.

    The length property does not exist in the VirtualMachineImpl object.

    The length is to a table.

    As a solution, you can count the number of objects VirtualMachineImpl returned (with the Measure-Object cmdlet) and use that value instead of the length property.

    Something like this for example

    do {
         Start-Sleep -Seconds 15 #Wait 15 seconds, and check again!
         $poweredOn = $FALSE
    
         #Start-Sleep -Seconds 10
         foreach ($machine in $hosts){
              Connect-VIServer -Server $machine -User $user -Password $pass
              $vmsStillOn = Get-VMHost | Get-VM | where {$_.PowerState -ne "PoweredOff"} | Measure-Object | %{$_.Count}
              Disconnect-VIServer - Confirm:$FALSE
    
              Write-Host "Number of VMs is " $vmsStillOn
              if ($vmsStillOn > 0){
                   $poweredOn = $TRUE
                   break
              }
         }
    }while($poweredOn = $TRUE)
    
  • recorder with variable unit

    Hallo!

    I tried to use the recorder with variable units. It does not it? Can I change the units of the recorder of the version of the runtime somehow?

    Thanks for your advice.

    Hilby

    Hello again!

    I found the solution:

    Even when it is not possible to use a variable in the context menu, it is possible to put a global string in the recorder manually. I put "${Unit_Ch1}" on the ground for the unit, and it worked.

    Have a good day everyone.

  • Scan chain with variable elements of number?

    Hi all

    I wonder what would be a good way to parse a string containing a variable number of items to search for. I've seen comments of Roberto on the scan function that are very useful (link1, Link2).

    The string type, I would be sweeping would be "5 2.6 4.7 5.01 7.1 4.03" with 5 specifying that will follow 5 double rooms, delimited by spaces.

    Thanks in advance!

    Scan of the CVI function is very powerful, with many options and features, but it has some limitations.

    For example, the ability to scan several parameters in a table as Roberto watch is very slippery, but I can't find a way so he can tell me how many items have been scanned.  Scan returns the number of items formatted, but apparently, it counts a table as a single item.  You can check that by checking the return value of scanning in the message of Roberto.

    I tend to fall back on many of the functions of the library of ANSI-C function strtok Norbert suggested.  You need more lines of code, because you load the element of a table at a time in a loop, but you can add more checking along the way of the errors.  You could do the same thing with the sweep, playback of a parameter at the same time and then jump the NumFmtdBytes() in the next reading.  But if I do not need the additional capacity a CVI library function, I use the ANSI C function.

    It's just another way of seeing things.  strtok is not clearly better than Scan() in this case, it shows just another approach.  Each has its own advantages and disadvantages.

    Take a look at the attached simple example.  It shows some of the audit that can be done, with examples of several types of possible errors of possible errors.

  • 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

Maybe you are looking for

  • Support Skype or RTC support

    Hello I would like to know if it is planned in the future support for Skype. If it is not possible due to hardware problem, why don't you add support to WebRTC. For example Firefox OS does not support whatsapp, but there are a lot of alternatives suc

  • Why doe iPhoto want to load all the pictures my camera took ever when I want just to upload 3 photos?

    Why doe iPhoto want to load all the pictures my camera took ever when I want just to upload 3 photos? I have just three pictures I want to load my usb for my macbook camera style

  • Re: This is not a genuine copy

    Hi, I just put my laptop and have the error message that is not a genuine copy on my desktop in the lower right. I have owned the phone for about a year. I tried to activate windows again, but it says contact Toshiba Any help Thanks Shaun

  • Can code C be converted to G for LabVIEW?

    Hi guys,. Is it possible to convert code C/C++ into G code in LabVIEW?

  • Wireless WAN card keeps turning off F5521GW

    Hello Yesterday I installed F5521GW modem in my x220t and after downloading the drivers found on the forum, it worked fine. So I decided to do the automatic update, it finds some drivers associated with WWAN adapter (GPS, "Lenovo Mobile Access" and I