Help run procedure

OK, so embarrassing enough, I've never had to perform the procedure.

I need perform this procedure, and I don't really know how the syntax will be.

Code of procedure...

PROCEDURE Rollover_Tables

-Controls the creation of new nrn_sites, nrn_strata, nrn_use_levels records.

- and nrn_sampleyears save for a new cycle. Return value is to be

-"SUCCESS" or "ERROR: msg > '"

(p_forest IN nrn_sites.aforest_code%type

p_from_round IN nrn_sites.round%type

p_to_round IN nrn_sites.round%type

p_fiscal_yr_todo IN varchar2

p_return OUT varchar2) IS

v_return varchar2 (300);

number of v_count;

BEGIN

IF p_forest is null or

p_from_round is null or

p_to_round is null or

p_fiscal_yr_todo is null

THEN

p_return: = ' ERROR: one or more input parameters is null';

ON THE OTHER

-ensure that the forest is active

Select count (1)

in v_count

of nrn_adminforests

where aforest_code = p_forest

and in_use = 'Y ';

IF v_count = 1

THEN

Rollover_Sites_and_Strata (p_forest

p_from_round

p_to_round

p_fiscal_yr_todo

v_return);

IF v_return <>'SUCCESS'

THEN

p_return: = v_return;

ON THE OTHER

Rollover_Use_Levels (p_forest

p_from_round

p_to_round);

p_return: = 'SUCCESS';

COMMIT;

END IF;

ON THE OTHER

p_return: = ' ERROR: this forest is inactive, it cannot be reversed ";

END IF;

END IF;

END Rollover_Tables;

I understand that there was once a variable input... but still, I don't know how to write sql or pl/sql.

I need:

p_forest = A01117

p_from_round = 3

p_to_round = 4

p_fiscal_year = 2013

Thank you.

Read the documentation. You can not survive without knowledge. You can start here http://docs.oracle.com/cd/E11882_01/appdev.112/e25519/subprograms.htm#LNPLS008

DECLARE

v_return varchar2;

BEGIN

Rollover_Tables ('A01117'

3

4

2013

v_return);

dbms_output.put_line (v_return);

END;

Tags: Database

Similar Questions

  • Need help, run the stored procedure in ASP.

    I have a web page in which I would use a query like http://ereply.us/q/l.asp?id=383966476 string

    It directs the user to a page that contains the following code:

    <!-queue = "database_connection.asp #include" - > "
    < %
    If not isempty (request.querystring ("id")) then
    SQL = "exec dbo.fp_qr_code @sequence (request.querystring ("id")) =" "

    If rs.state = 1 then rs.close
    RS. Open sql, conn, 3, 2

    If rs.recordcount <>0 then
    session("Name") = rs ("name")
    session("JobID") = rs ("jobid")
    session("SEQ") = rs ("seq")

    If rs ("id") <>"" then the answer. " Redirect ("index.asp")
    end if
    end if
    % >

    It queries a SQL database to return the value of 'name '. In turn, according to the code of the user should be directed to 'Index.asp' that contains:

    Welcome < % response.write (session("name")) % >

    And the page you should see the page with"Welcome".  Instead, I get a server 500 error.  The stored procedure runs as a stand-alone query in SQL Management Studio.

    Any ideas would be greatly appreciated.

    I solved this.  This is the query that worked:

    < %="">< br="">SQL = "" exec fp_qr_code ' "& request.querystring ("id") &" ' " < br=""> set rs = Conn.Execute (sql) < br=""> if rs.eof then response.write ("no registration") < br=""> while not rs.eof" ""
    response.write (("name") rs)

    response.write (("imgname") rs)

    response.write (rs ('url'))

    RS.MoveNext
    Wend < br=""> %>

  • Debug/run procedures within the package

    Debugging with SQL Developer was generally very nice and I have come to rely on these tools. Today, I've written a procedure in a package and I want to debug this process, but I don't see it in the list of targets. It seems that I see only functions in the target list. I understand that the procedures need not have the same kind of output in function, but sometimes I like to create procedures that have multiple SETTINGS, especially when it comes to an exit very closely related.

    The interesting thing is that I can create this same procedure as a stand-alone procedure and the run/debug works great. Apparently I'm missing something obvious in SQL Developer somewhere I thought it was there all the time (I guess for a while since I've written a procedure with OUT parameters) but maybe I'm wrong. Any ideas or help someone?

    Earl

    It should work.

    Is that you can create a package of simple heel with just a function procedure that is a NULL; and use it as a test?

    If this does not work there either, please send a screenshot so we can see what you see in the debugging with the missing procedure dialog box.

  • help the procedure...

    Hello world

    I created the following procedure to create a table and insert with select data, the procedure being executed very well but when I write a query using the table "mrsa_admit_date", and then he throws me an error with "table or view does not exist.

    Lost something here?

    With the help of oracle 11g

    create or replace PROCEDURE P_MRSA_STEP3 AS

    BEGIN

    run immediately 'truncate table mrsa_admit_date;

    insert into mrsa_admit_date

    Select A.pat_id, A.pat_enc_csn_id, P.hsp_account_id, min (A.effective_time) in the Admit_date

    of clarity_adt@clarprod A

    inner join mrsa_cms_units mcu

    On mcu.dept_id = A.department_id

    Join hsp_account@clarprod P internal

    On A.pat_enc_csn_id = P.prim_enc_csn_id

    -where

    -P.hsp_account_id = 12226392031

    -In (10610792118,41567152070)

    A.pat_id, A.pat_enc_csn_id, P.hsp_account_id group

    commit;

    END P_MRSA_STEP3;

    Thank you.

    Well it is because you have no code to create a table. You have a truncation, and then an insert.

  • Problem running procedure using Variables

    Hi all

    I am trying to execute the procedure in a statement declared/Begin/End and using variables as parameters of entry in my interior but I get away to an invalid SQL statement error. My code is below:
    declare
    
      START_dt  VARCHAR2(30);
      END_DT VARCHAR2(30);
      
         
      begin
            
        SELECT '01-APR-2011'
        INTO END_DT
        FROM DUAL;
      
        SELECT '01-APR-2020'
        INTO END_DT
        FROM DUAL;
             
           
         BEGIN EXECUTE IMMEDIATE 'INSERT_PROV_ACSC_IND_REF('||START_dt||','||END_DT||')';END;COMMIT;
    
     end;
    
    Error at line 1
    ORA-00900: invalid SQL statement
    ORA-06512: at line 18
    Is the way that I normally run my procedure outside this statement Declare/Begin/End: EXECUTE INSERT_PROV_ACSC_IND_REF('01-APR-2011','01-APR-2020');

    The table that takes the data from the procedure does not correct timestamp but my procedure takes the varchar above dates and turns them into dates in the procedure so that the entry date settings are left as a string.

    Any help would be appreciated.

    Thank you

    And if you want to use variables:

    declare
        START_dt  VARCHAR2(30);
        END_DT VARCHAR2(30);
    begin
        START_dt := DATE '2011-04-01';
        END_DT := DATE '2011-04-01';
        INSERT_PROV_ACSC_IND_REF(START_dt,END_DT);
    end;
    /
    

    SY.

  • Windows XP "Apple Mobile Device Driver not installed not" device need driver mobile HELP running XP service pack 3 using an iphone 4

    Problems with the iphone 4 who it says in itunes that "Apple Mobile Device Driver not found" and nothing happens when it is connected to the USB port on charge even not. Running Windows XP 32-bit with Service Pack 3. but think I deleted all the drivers mobile when I uninstalled my Blackberry and removed the current mobile device drivers. Apple went through just fine and everything is OK it is a problem of PC and XP. Microsoft help put me on this site because need to know how to solve this problem I hope that somewhere there are mobile device drivers that work with the iphone? Site Internet de Microsft has 5 mobile device for Windows 7 drivers, but not for XP. Need help!

    Apple went through just fine and everything is OK it is a problem of PC and XP.

    Evasive classic.  It's always the problem of the other guy.

    And the classic response of some evil-educated person "technical support":

    Microsoft help put me on this site

    If the error message says 'Mobile Apple Device not found Driver' then it's an Apple problem, pure and simple.  The device driver mobile for the iPhone comes from Apple, not Microsoft.

    Do you remember what you were doing when you "deleted all the drivers mobile when I uninstalled my Blackberry and removed the current mobile device drivers?"

    Probably not... and you have not explained what has been included in "Apple went through everything."  It is time to start over by removing everything related to Apple and then put it back correctly.

    First, however, the fact that the iPhone does not load even when connected to a USB port is a bit worrying.  Works in everything else in this USB port (for example, a USB flash drive)?

    Have you tried all the USB ports on your computer?  Take a look in the Device Manager (start > run > devmgmt.msc > OK) and see if there are any icons showing warning.  If so, double-click on the entry and information "device status".

    Take a look at the event viewer (start > run > eventvwr > OK).  There is no need to go far.  Connect your iPhone, then look at the newspapers (System and Application) for since a few minutes see if there are any errors or warnings.  If so, double-click on it to get the event properties window, and then click the "Copy" icon (just below of the)

    Have you tried to recharge the iPhone using the adapter connected to Apple's USB cable?  Does it work?

    Have you tried to connect the iPhone to another computer?  With what results?

    Assuming that the hardware (iPhone, USB cable, and USB ports on your computer) is not working properly, see the following topics.

    To perform a "clean" iTunes installation uses this technique proposed, from Support of Apple HT1926 article.

    Warning: uninstall utility for cleaning Windows mentioned in the instructions below has been removed from Microsoft download servers because sometimes it seems more removed he was supposed to (I think that this phenomenon was linked to the bureau uninstalls).  You can still get utility Windows Installer Cleanup--> http://majorgeeks.com/Windows_Installer_CleanUp_Utility_d4459.html here is a free alternative Revo Uninstaller. Before using these cleaning products, you must create a restore point from the system first (or back up the registry with C:\WINDOWS\ERUNT).  See http://windowsxp.mvps.org/registry.htm a complete disk image would be safer if you have this ability.

    Go to control panel > Add/Remove programs
    Remove these applications:
    1 Apple Software Update
    2. Apple Mobile Device Support
    3 Hello
    4 iPod for Windows (this may or may not exist, be it, it is not necessary, then we can remove it)
    5 iTunes
    6 QuickTime

    Open my computer > C: > Program Files
    Delete this files (if present)
    1 iPod
    2 iTunes
    3 QuickTime

    Empty your temp directory:
    Open my computer > C: > Documents & Settings > username > Local Settings and delete the contents of the folder called "Temp".

    If you don't see the local settings, enable hidden files:
    Tools > Folder Options > view tab
    Select Show Hidden Files & folder, and then click OK

    Once this file is empty, restart the computer

    Download & install the Windows Installer Cleanup utility: [see note above regarding cleanup utility]
    http://support.Microsoft.com/kb/290301/
    Launch the utility: start > programs > Windows Installer Clean Up
    Select one of the applications mentioned above and click on remove

    Restart the computer
    Download & reinstall iTunes from here: http://www.apple.com/itunes/download/

  • need help running at 100%

    guys I just want to know why my cpu runs at 100% this program made this WmiPrvSE.exe and how do I fix if posible

    http://www.Microsoft.com/en-US/Download/details.aspx?ID=1157 this should help. If this isn't the case, then your laptop computer may have a virus.

  • Need help running and installation of cloud/creative applications

    Hello, I am a student trying to creative cloud and several adobe applications, work at home so I can't do a 5 hour trip return to school and facing a lot of problems to just running programs.

    first set up: I'm using windows 7-64 bit with a small 100g SSD main (C :) and a terabyte of secondary drive for most of my data (d :))

    first of all, I downloaded CC some time ago and it crashed when opening simply tried several times and did not work, so I was forced to use auxiliary programs to simulate the demands made in the classroom for a modest success.

    now, after a few updates and a new installation of windows 7, I thought I would try again. I downloaded CC and started installing some applications that I need (flash, first, photoshop, illustrator, and consequences). However I don't have enough room on my SSD, so I removed the programs and reinstalled in a file on my D: drive. Flash and the Prime Minister has worked for a few minutes before CC informed me that I would not be able to use other programs because there was not enough space available to update.

    I have 10 GB of space on my SSD, I understand there are some information that must be stored on the C: drive, but why it takes up to 10 GB of space?
    to use 1-2 applications without having update problems, I uninstalled Photoshop and Illustrator, as I will now need them later in the half and CC as a whole simply refuses to work. All loading the CC program causes an error. I tried to reinstall and restart the computer. Nothing helps. so I uninstalled all the programs adobe and CC, but CC was still send me errors in the uninstall.

    I tried more than 10 times to redownload/install CC and more I could do is get the CC itself at startup program, but it immediately gives me "DOWNLOAD ERROR" (without error number) and simply contact customer.

    I'm currently stuck at this step with no idea what to do, any help would be appreciated, because I have homework that needs to be done at home and can not do without these programs

    You can work around the cc desktop app and install directly from prodesigntools.com

    If you follow the 7 steps you can directly download a free trial here: Adobe CC 2015 Direct Download Links: Creative Cloud 2015 Release | ProDesignTools

    If you have a problem from the download, you follow the 7 steps, or your browser does not accept cookies.

    the most common problem is caused by failing to meticulously follow the steps 1, 2, and/or 3 (which adds a cookie to your system, allowing you to download the correct version of the adobe.com site).

    failure to obtain this cookie translates into an error page displayed after clicking on a link on prodesigntools.com or initiates the download of an incorrect (e.g., current) version.

  • R4 problem EA - Run procedure - input VARCHAR2 default setting

    The "Run" function (from the context menu or the green icon at the top of the code editor) for autonomous procedures has been improved to know and use the default values. Thank you.

    When using the default VARCHAR2 values, he locks the values double apostrophes that generates an error.


    Here are the PL/SQL block that is generated for a procedure:

    DECLARE

    PI_COMP_NAME VARCHAR2 (200);

    DATE OF PI_START_DATE;

    DATE OF PI_END_DATE;

    PI_RUN_EXTRACT BOOLEAN;

    PI_RUN_LOAD BOOLEAN;

    PI_TRUNCATE_TABLE BOOLEAN;

    NUMBER OF PI_BATCH_SIZE;

    NUMBER OF PI_PARALLEL_LEVEL;

    BEGIN

    PI_COMP_NAME: = " " "HPCCM""";

    PI_START_DATE: = NULL;

    PI_END_DATE: = NULL;

    PI_RUN_EXTRACT: = TRUE;

    PI_RUN_LOAD: = TRUE;

    PI_TRUNCATE_TABLE: = FALSE;

    PI_BATCH_SIZE: = 500000;

    PI_PARALLEL_LEVEL: = 2;

    () ADHOC_LOAD_USER_RFC_BRIDGE

    PI_COMP_NAME = > PI_COMP_NAME,

    PI_START_DATE = > PI_START_DATE,

    PI_END_DATE = > PI_END_DATE,

    PI_RUN_EXTRACT = > PI_RUN_EXTRACT,

    PI_RUN_LOAD = > PI_RUN_LOAD,

    PI_TRUNCATE_TABLE = > PI_TRUNCATE_TABLE,

    PI_BATCH_SIZE = > PI_BATCH_SIZE,

    PI_PARALLEL_LEVEL = > PI_PARALLEL_LEVEL

    );

    -restoration;

    END;


    Attempt to run this code resulted in the following error:

    ORA-06550: line 11, column 21:

    PLS-00103: encountered the symbol "HPCCM" when waiting for one of the following values: * & = +; /. is rest mod...

    replace the single quotes duplicated with active single quotes the code runs successfully.





    Reproduced, bugged, fixed for ai2.

  • Help please procedure:

    declare
    cursor emp_cur is select ename,empno,sal from emp where sal>1000;
    emp_record emp_cur%rowtype;
    begin
    open emp_cur;
    loop
    fetch emp_cur into emp_record;
    dbms_output.put_line(emp_record.ename||'  '||emp_record.empno||'  '||emp_record.sal);
    exit when emp_cur%rowcount>10 or emp_cur%notfound;
    end loop;
    close emp_cur;
    commit;
    end;
    /
    
    
    
    *In a procedure i want tp pass all these (emp_record.ename||'  '||emp_record.empno||'  '||emp_record.sal) columns* 
    *i want as out parameters how can i write a procedure*

    >
    I want to pass out parameters like this... Not like a cursor variable Ref can you please help me like that
    >
    No - if you use only THE settings for column values the procedure returns only ONE set of values so it would be pointless to have a LOOP in the process.

    If you want to return a result set with more than one line, you must return a cursor or to use a function in the pipeline.

     create or replace
        package pkg2
          as
            CURSOR emp_cur is (SELECT empno, ename, job, mgr, deptno FROM emp);
            type pkg_emp_table_type is table of emp_cur%rowtype;
            function get_emp(
                             p_deptno number
                            )
              return pkg_emp_table_type
              pipelined;
      end;
      / 
    
     create or replace
        package body pkg2
          as
            function get_emp(
                             p_deptno number
                            )
              return pkg_emp_table_type
              pipelined
              is
              begin
                  for v_emp_rec in (SELECT empno, ename, job, mgr, deptno
                                    FROM emp where deptno = p_deptno) loop
                    pipe row(v_emp_rec);
                  end loop;
              end;
      end;
      / 
    
     select * from table(pkg2.get_emp(20));
    
           EMPNO ENAME      JOB              MGR     DEPTNO
      ---------- ---------- --------- ---------- ----------
            7369 DALLAS     CLERK2          7902         20
            7566 DALLAS     MANAGER         7839         20
            7788 DALLAS     ANALYST         7566         20
            7876 DALLAS     CLERK           7788         20
            7902 DALLAS     ANALYST         7566         20
    
  • sqlplus run procedure + accepting + invites

    Hi all

    I am a little confused with the execution of a procedure.

    Procedure synonymexistmgr

    < pre >
    CREATE OR REPLACE PROCEDURE synonymexistmgr
    (tables_schema IN VARCHAR2)
    AUTHID CURRENT_USER
    AS
    CURSOR tab_cur IS SELECT table_name FROM all_tables owner WHERE tables_schema AND table_name = not like '% MDRT ".
    BEGIN
    FOR x IN THE LOOP of tab_cur
    RUN IMMEDIATELY CREATE OR REPLACE SYNONYM | x.table_name |' FOR ' | tables_schema |'. ' || x.table_name;
    END LOOP;
    END;
    < / pre >

    Want to run it as one accepts a tables_schema entry in sqlplus

    * 01.sql*

    < pre >
    Journal of 01.Intro coil

    ACCEPT the USER PROMPT "enter the value for the USER (for example USER_X/USER_Y):

    Synonymmgr EXEC ('& user');

    01 FAST is over.
    < / pre >

    When I run it through a command .bat,

    < pre >
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production 64-bit
    With the partitioning, Data Mining and Real Application Testing options

    Enter the value for the USER (for example USER_X/USER_Y):
    < / pre >
    I typed in 'abc '.

    and came with

    < pre >
    PL/SQL procedure successfully completed.
    < / pre >

    There is no user of this type in the form ABC, why was the PL? SQL executed successfully, how can I include a few checks and balances in the process?

    Thank you very much in advance for your advice.

    You must make all checks custome for yourself.

    Here is an example of how you can make your check.

    create or replace procedure synonymexistmgr
    (
         tables_schema in varchar2
    )
    authid current_user
    as
         invalid_user exception;
         lUser varchar2(100);
    begin
         begin
              select username into lUser
                from all_users
               where username = upper(tables_schema);
         exception
              when no_data_found then
                   raise invalid_user;
         end;
    
         for x in (
                   select table_name
                     from all_tables
                    where owner = upper(tables_schema)
                      and table_name not like 'MDRT%'
               )
         loop
              execute immediate 'create or replace synonym '||x.table_name||' for '||tables_schema||'.'||x.table_name;
         end loop;
    exception
         when invalid_user then
              raise_application_error(-20001, 'The input user ' || tables_schema || ' does not exist.');
    end;
    
  • X 301: GTA IV game help, run?

    Hello people

    IM thinking to buy a GTA IV but I don't know if you really run, at least in the minimum to my thinkpad...

    I have a X 301 GT with windows XP PRO all updates (the only problem is the offset for a video card yet)

    2 GB of ram and an INTEL MHD 4500 should be good for the minimum? at least. _. ?? ??

    has anyone experienced?

    Moderator Note: Type added to the line object for clarity. The title of a thread should exactly reflect the purpose of the discussion and be technically accurate as possible as stated in the rules of the forum.

    DO NOT go to work.

    At best, you will be able to play more old and/or simple games at lower settings.

    The Intel GMA is NOT even remotely a game GPU.

  • Need help running push Widget Widget SDK sample

    Hello

    The Widget SDK is my first foray into developing for BlackBerry.

    I downloaded the installer that bundles of the Eclipse IDE (because I had problems with the update of the eclipse) since http://na.blackberry.com/eng/developers/browserdev/eclipse.jsp Simulator that runs when I launch a widget indicates that it is the Smartphone BlackBerry 2.13.0.56 Simulator

    I tried to run the example (found on http://docs.blackberry.com/en/developers/subcategories/?userType=21&category=BlackBerry+Widgets&subC...). I have the widget running in the Simulator and the Swing app that runs server-side code works as well, but the messages do not get pushed to the device.

    Here are a few questions & information:

    1. documentation of this example seems to assume a MDS standalone and not as a plug-in - IDE he talks port 8080, but I found that my instance of MDS is tuned to 28080

    2 access localhost 28080 shows me the status of SDM which is

    Build number: 93
    Build version: 5.0.0.93
    Construction date: 2009/08/12

    3. the example instructions say:

    Open the rimpublic.property file, located in the subdirectory MDS\config of the BlackBerry Email installation directory and Services MDS simulators.   Make sure that the line 'push.application.reliable.ports = 100' is NOT commented.

    I did find this line (I found the MDS file with the file with this name under \plugins\net.rim.browser.tools.wcpc_1.0.0.200910291414-35\wcpc\mds\config) so I added it myself.

    4. I am running Win 7 Ultimate and tried this after letting a MDS access by adding an exception and more completely by disabling the firewall.

    5. for the RIM option in server code to push, I get the following exception in the console:

    Sending to http://localhost:28080/push?DESTINATION=2100000A&PORT=100&REQUESTURI=localhostjava.io.IOException: Server returned HTTP response code: 400 for URL: http://localhost:28080/push?DESTINATION=2100000A&PORT=100&REQUESTURI=localhost
    

    6. for PAP, I see:

    [B@186d4c1[B@186d4c1 sending PAP request to http://localhost:28080/pap; pushId = pushID:64424432--asdlfkjiurwghasfContent-Type: application/xml; charset=UTF-8
    
    http://www.wapforum.org/DTD/pap_2.0.dtd"   []>
    
    
    --asdlfkjiurwghasfContent-Type: text/plain pap--asdlfkjiurwghasf-- [B@f9f9d8[B@f9f9d8[B@15b7986[B@15b7986

    7. on the console for the DMS, I see:

    <2009-11-28 03:49:48.683 EST>:[115]:::
    <2009-11-28 03:49:48.694 EST>:[116]:::
    <2009-11-28 03:49:48.697 EST>:[117]:::
    <2009-11-28 03:49:48.697 EST>:[117]:::
    <2009-11-28 03:49:48.698 EST>:[118]:::
    <2009-11-28 03:49:48.702 EST>:[119]:::
    <2009-11-28 03:49:48.704 EST>:[120]:::
    <2009-11-28 03:52:49.193 EST>:[121]:::
    

    8. After awhile, when you use PAP, the Eclipse console displays "connection of Notification period. Restart of... "and this message keeps repeating.

    So, if someone could point me in the right direction to get it to work or give me an idea of what I'm doing wrong, that would be great! I really don't know too much about the development of BlackBerry or SDM or push so I do not know where to start.

    Thank you!

    Hello

    It turns out that there is a known issue in the connection services MDS where environmental push imitate them you have to take a few steps.

    Once you have the open Simulator, you must have the device Simulator to connect through the SDM a couple of times so that he knows that this is actually.

    What we have seen that the work, should open the browser and go to a link like http://www.google.com a couple of times and then try and push.

    some of our developers have seen that sometimes it can take a few tests so that the MDS detect the Simulator.  We have a bug connected with the MDS team on this topic.

    Tim

  • Help running DotNet samples

    I built the DotNet CS samples successfully, but as I am new on the WSSDK, I'm not clear how to operate.  For example, I'm trying to run GetVMFiles or GetVirtualDiskFiles from the inside of the host (Windows 2003 Server) running on vSphere 4.1.

    I don't understand what more of the different parameters mean.

    I ran this command-line, divided for readability (192.168.123.121 is the IP address of the server vSphere, the client runs on):

    GetVirtualDiskFiles.exe - url https://192.168.123.121/SDK username - root - password rootpswd - Server 192.168.123.121 - hostname 192.168.123.121

    I get the following result. It lists VMDK that one only which is not even used by the current customer! Can someone tell me what the various parameters and how to get the VMDK for the current customer?  Thank you.

    • A string of certification handled properly, but finished in a certificate root that is not approved by the trust provider.
    • The certificate CN name does not match the passed value.
    Start the journal. Started there were one or more problems with the certificate of the server: search the storage of data search Datastore Storage1 disks files virtual CL - w2k3x64a3.vmdk files of the virtual disks Searching The Datastore Storage2 No. thin provisioned found completed VirtualDiskFiles journal of end.

    Hello

    The other filter criteria that uses this example is the controllerType to be "VirtualIDEController". You can try to remove/comment following the line, re - build the sample and post the output. Removal of the threshold will ensure that no filter criteria apply when searching for the data store.

    searchSpec.query = arr;
    

    About your application to the parameters specified when running the example, they seem to be correct. They mean following:

    -url: URL of the ESX/vCenter Server

    -username: user name for authentication

    -password: password for authentication

    -hostname: host where the search data store must be performed

    I couldn't find the "-Server" parameter, so do not know what that means.

  • Help on procedures

    Oracle DB10gR2
    Win 2 k 3

    I am creating a procedure to send a few people when 1 or more jobs. I think I'm almost there; I can't seem to be able to list all of the work that has no names.

    That's what I've got so far...
    create or replace
    PROCEDURE emailtest AS
       v_count number;
       V_MESSAGE VARCHAR2(500);  
       CURSOR jobs IS
       select job_name from dba_scheduler_job_log where owner = 'XYZ'
        and status='FAILED' and log_date between TO_CHAR(sysdate - 1440/1440,'DD-MON-YY HH:MI:SS pm') and
        to_char(sysdate,'DD-MON-YY HH:MI:SS pm');
    
      BEGIN
       select count(*) into v_count
        from dba_scheduler_job_log where owner = 'XYZ'
        and status='FAILED' and log_date between TO_CHAR(sysdate - 1440/1440,'DD-MON-YY HH:MI:SS pm') and
        to_char(sysdate,'DD-MON-YY HH:MI:SS pm');
       
       if v_count > 0 then
          UTL_MAIL.SEND
          (sender=>'[email protected]',
           recipients=>'[email protected];[email protected]',
           subject=>'Oracle Jobs Failed',
          
            message => );
    
      end if;
       EXCEPTION
       WHEN OTHERS THEN
         dbms_output.put_line('The following error has occured: ' || sqlerrm);
         null;
       END;
    In the UTL_MAIL. SEND; Message... I'm trying to get something like this in the email:

    job one
    job b
    c job

    How can I get the job_name failed on the message / content of the email?

    Thank you.

    If you want that the names of work on separate lines, first determine your target line break character (for example just Chr (10), or Chr (13) |) 10.
    That put it in a variable (let's call it "v_nl").

    Just before your UTL_MAIL. SEND line, add:

    FOR r_jobs IN jobs
    LOOP
        v_message := v_message || r_jobs.jobs || v_nl;
    END LOOP;
    

    v_message now contains job failed, names separated by new lines. Switch v_message as long as your message parameter.

Maybe you are looking for