Access to the defined user compex types in stored procedure

Hi all

I have two complex types defined by the user which are defined as follows:

create or replace

TYPE 'MA_ROOT_OBJECT' AS THE OBJECT

(

USER_MACHINE VARCHAR2 (30),

USER_DOMAIN VARCHAR2 (60),

DATE OF EVENT_ACTIVITY_DT,

USERCOLL MA_USER_TABLE,

DATABASECOLL MA_DATABASE_TABLE

)

And USERCOLL and DATABASECOLL are again a different complex types defined by user 2. What should I do for the DATABASECOLL of the stored procedure?

I am getting error below when I try to access:

  • Error (13.31): PLS-00302: component 'TMP_DATABASECOLL' must be declared

######################################################

PROCEDURE SP_MSACCESS_METADATA)

MSACCESSCOLL IN MA_ROOT_TABLE,

STATUS OF THE VARCHAR2)

AS

TMP_DB_NAME VARCHAR2 (100);

TMP_DATABASECOLL MA_DATABASE_TABLE;

meter NUMBER (3);

BEGIN

SAVEPOINT INIT;

TMP_DB_NAME: = MSACCESSCOLL. TMP_DATABASECOLL. DB_NAME

EXCEPTION

WHILE OTHERS THEN

STATUS: = "ERROR BY STORING DEMAND MSACCESS."

RAISE_APPLICATION_ERROR (-20001, SQLERRM);

ROLLBACK TO SAVEPOINT INIT;

END SP_MSACCESS_METADATA;

Since MA_DATABASE_TABLE is a collection, you must tell Oracle item on which you want to:

For example, if you want only one element in the collection:

TMP_DB_NAME: = MSACCESSCOLL. DATABASECOLL (1). DB_NAME;

otherwise, you will need to loop.

Tags: Database

Similar Questions

  • How to unlock the c: drive. I have only access to the folder users and subfolders.

    I have only access to the folder users and subfolders.  Everything I tried was "access denied."  I can't get to the root of c:.

    Hi, Scrivmark

    The default C: drive system is not intended to access directly by users and therefore users have restricted access to its root in the premeditated or premeditated damage prevention vital system files. If you are an administrator you can allow full access to your account to all or specific files on drive c (including a root folder) by editing its ' authorization of the lists by right-clicking on a file and choosing "Security."
    If you are not an administrator, you should ask another user whose account is Administrator (or equivalent) privileges to access the interesting files to your account.
    In both cases, you must understand damage system files, you can do.

    This suggestion is the intention that your computer is virus-free.

  • New user needs access to the old user profile files

    Windows 7 Pro on a W2008 domain, the latter leaves the company; User_B will take his place and needs access to all files (including e-mail - WindowsLiveMail);  There are currently three email accounts configured in the profile of the latter.  What is the best way to give User_B access to the data?  I tried to copy the data from the profile folder to the folder profile User_B, but when I try to open a document (Office 2002), I get "there was a problem sending the command to the program".

    When I tried to copy the profile via the control panel... Settings, user profiles, the option "copy to" was not available.

    There must be a relatively simple way to do this.  Help, please.

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)

    If you give us a link to the new thread we can point to some resources it
  • The admin user doesn't have access to the Standard user account files

    OK, I'm lost.  It's crazy.

    After reading the reasons to do most of your work on/as a Standard user, I created a user account (quite a while) and have been using it since--and perhaps the way I did have this problem.

    If I remember correctly, this is how I did it.  I had a LOT of files under my old ID admin, so I created another Admin account and then replaced by former Admin account is a Standard user account.  I have been connected and makes every slot the user account Standard since then, with Windows poping a request my Admin password whenever he needed.

    Today, I needed to change a tax return of 2013 - and when I reloaded TurboTax last year and needed to get the State program, TurboTax wouldn't, claiming that I need to be logged in as an Admin user (I have not the popup asking my Admin password).

    OK, here's the problem.  When I have users to switch to my Admin account, after the passage, almost all the icons on my desktop disappear AND there are only a couple of files in my files of Documents Libraries\Documents\My.

    Everything to go.  I thought as an Admin user, I had access to everything.  How can I get all this stuff back (the icons on the desktop for example and other user account files, etc.)

    When I was logged in as an Admin user, it seemed that I could share files with other Useers - so I thought, Aha, that's how it works.  So I logged on my Standard user account - but the ability to share my files, etc. did not exist, at least as far as I can tell (that is, cannot find this option anywhere).

    If all goes well there is something simple that miss me that things work so that as an Admin user, I have access to other user accounts where - it is supposed to work, isn't.

    Obviously need help.  Thank you.  Ron in round rock

    In fact, I have nothing - as stated in the above comment, I could see all my files and folders User\ron

    -> This either means that the folder is already shared, or that UAC (User Account Control) is disabled on your PC. This isn't a good idea because it exposes your computer at serious risk.

    I can edit, delete, running back, I can't (or maybe since I am the only user on this machine, I should leave him alone).  Just curious as to what I did exactly.

    -> If you have shared with read/write access, you can create/edit/delete the files.

    And finally, as an Admin user, I have only 4 icons in the taskbar (IE, Chrome, Windows Media Player and Windows Explorer) - that doesn't sound right.

    -> You'll get exactly icons you placed here while it is logged on as admin user.

    And really Finally, with regard to the disappearance of all the icons on my desktop when logged in as Admin user.

    Each user has his own profile. Inside the profile, there is the user's desktop. Desktop shortcuts that are visible while connected as user A are not visible when you are logged on as user B because each user has his own office!

    There is one exception: most applications require at installation time if their shortcuts must be visible by all users. If you answer 'Yes', then the shortcuts will go into this common folder: C:\Users\Public\Desktop.

  • Shared "Top N" gets access denied - the custom user interface

    I shared some dashboards for a standard user to vCops the custom user interface, and the "Top N" widgets do not work.

    So far, everything has been fine.

    I shared a dashboard home, as well as a vCops of the box and a pak of SAP management dashboard.

    All widgets 'Top N' display 'access denied to the requested page.

    Other parts of the same work of dashboard (home).

    Any thoughts?

    There is a permission that you add to the group to which you share the dashboard. There are permissions to a 'Top - N analysis' you must give to this group. In the contrary case, the refusal of access will appear when users in this group are attempting to access the dashboard in question.

  • User/privleges runs a stored procedure

    I'm not sure I understand how stored procedures work and had a few questions that I couldn't find the answer too. I have Google had for her and watched on forms SQL/PL/SQL here and don't see anything that has answered the questions.

    Here's my situation:

    I connected the diagram of the system as the system user. Under (SQL Developer) I have other users: user1 and user2.

    I wrote a stored procedure that compiles without error/warning under area of stored procedures of user2. It uses the data in the tables of the User1.

    In this procedure, I want to create a view, a treatment and then delete the stored procedure. When I run the procedure by right-clicking on the procedure and choosing run, the statements of views create do not create views.

    I would have thought that I ran it as a 'system', which should allow me to create views in the area of views of user2. It seems that this is not the case. I don't understand why. Any ideas? If you can point me to a place where has been answered a question like this, or the documentation, I'll take the link.

    Thank you

    VIC

    [Invoker rights vs rights define | http://download-uk.oracle.com/docs/cd/B10501_01/appdev.920/a96624/08_subs.htm#18575]

  • Passing parameters to the query to extract in a stored procedure

    How pass us in a parameter of a query retrieves in a stored procedure?

    Because for example I: -.

    FOR SheikYerbouti in company

    LOOP

    SELECT extract (response,'/ list/hwid [@name = "Tom"] / descendant::node () / address) employee where id = 9506;

    END OF LOOP

    Instead of TOM, I want to pass a variable because I use the stored procedure. The variable is emp_rec.name

    SELECT extract (response,'/ list/hwid [@name = emp_rec.name]/descendant::node()/address) employee where id = 9506; does not work?

    The XPath expression is of type string, concatenate the value:

    extract (answer, "/ List/hwid[@name="' |) emp_rec. Name | ([""] descendant::node () ')

    However, depending on your version of the database, there may be better alternatives, so if you can give us a little more explanation on your requirement, we would be able to offer other options.

  • How to get the list of parameters of a stored procedure in Oracle?

    I'm calling an Oracle stored procedure and use the OCIBindByPos for each parameter.
    Example:
    /* Do the bind for date, using OCIIOV */
    OCIBindByPos (stmthp, &bindhp2, errhp, 2, (void *)&bvec[0], 
                  sizeof(buf_1[0]), SQLT_STR, 
                  (void *)inddate, (ub2 *)alendate, (ub2 *)rcodedate, 0,
                  (ub4 *)0,  OCI_IOV);
    In this case, its necessary for a list of the parameters of the stored procedure, information such as type and the input/output parameter, etc.

    I can get the parameters of a stored procedure using the DESCRIBE statement.
    Example:
    SQL> DESCRIBE SP_GETCITIES
    PROCEDURE SP_GETCITIES
     Argument Name                  Type          In/Out Default?
     ---------------------- --------------------- ------ --------
     STATE_KEY              VARCHAR2               IN
     FECHA                  DATE                   IN
     RC1                    REF CURSOR             OUT
    
    SQL>
    Is there a better way to get the name, type, input/output for each parameter of an Oracle stored procedure, using the BEAK?

    Best regards.

    Antonio García (Mexico)

    Hi Antonio,.

    Take a look at "Describing metadata schema" in the programmer's Guide. He has this kind of information, which may be enough to get you going in the right direction. The guide is here:

    http://download.Oracle.com/docs/CD/E11882_01/AppDev.112/e10646/oci06des.htm#i446492

    In particular, see the code example in the section "describing the stored procedure.

    Kind regards

    Mark

  • SQL to generate the last weeks date (not a stored procedure)

    I need SQL to generate the last dates of weeks from Monday to Sunday. I don't want to use the data in the table or the stored procedure. I need inline SQL. Please help me with your suggestions. Thanks in advance for the help.

    Varun says:
    I need SQL to generate the last dates of weeks from Monday to Sunday. I don't want to use the data in the table or the stored procedure. I need inline SQL. Please help me with your suggestions. Thanks in advance for the help.

    below should help you get started

      1* SELECT SYSDATE-LEVEL from dual CONNECT BY LEVEL < 8
    SQL> /
    
    SYSDATE-L
    ---------
    21-APR-13
    20-APR-13
    19-APR-13
    18-APR-13
    17-APR-13
    16-APR-13
    15-APR-13
    
    7 rows selected.
    
  • Unexpected token: the error that occur inside a stored procedure

    I get an unexpected token error when you try to compile the following stored procedure. The error occurs on the run pk_proof.pr_ProofAssets inside the stored procedure exec statement. No reason?
    CREATE OR REPLACE PROCEDURE MONTHLY_ASSET (ln_business_dt_num IN NUMBER DEFAULT NULL,
                                               missing_tbl_name OUT NOCOPY VARCHAR2) 
    IS
       ln_business_dt_num NUMBER;
       missing_tbl_name VARCHAR2;
       no_tbl_name_found EXCEPTION;
       bad_date_value EXCEPTION;
       counts_not_matched EXCEPTION;
     BEGIN
       IF ln_business_dt_num < 0 THEN
       RAISE bad_date_value;
       ELSE
         Select MAX(business_dt_num) into ln_business_dt_num
         FROM sasor.dp_ca_proof;
          
       if missing_tbl_name IS NOT NULL then
          raise no_tbl_name_found;
       end if;
       
       exec pk_proof.pr_ProofAssets('SLH_DST_ASSET', ln_business_dt_num, 'sasor_batch');
     

    Remove 'exec '.

  • Cannot return the 'Guest' to the standard user account Type

    I changed our Type of customer account to the administrator, so a family member could download some things when I was unavailable to repeatedly type a password for it.  Now, I would like to change the Type of account to standard - but I can't.

    When I connect like me, an administrator, and then click on manage other user accounts, the only changes I offer myself for the guest account are image change or disable the account.  When I log on as a guest and click on change the Type of account, I select the Standard button, click on change the account Type, and should not be.  I went back to the screen back and comments is still a Director.  What is happening with this limitation?

    Thank you

    Rosela

    Just disable the guest account.

    And will NEVER again allow him. It is a security risk because it allows anonymous access on your computer. Even worse, if you changed it administrator. (Why on EARTH made you that I have NO idea). This is why it is disabled by default.

    If you wish to allow someone occasional access to your machine to create a Standard user account and call it 'visitor' or something similar. You don't need administrator privileges to upload files...

    If you find my answer helpful, please click the button "Vote as helpful"! Thank you!
    My Windows Blog

  • Lost access to the home user folder

    Hello. I seem to have lost permissions to access to my home folder in OS x El Capitan.

    If my user under Favorites folder-click, then nothing is displayed.

    If browse computer / user /... so I can see my user but it is shaded pale gray and no access is possible.

    Tried disk repair. No other question similar.

    My user has administrator access.

    I am still able to use the - Mail, Photos, iTunes - apps that access the files that are located in my home folder of the user.

    Ideas on how to access the home folder in the Finder?

    Hey RossM.

    I understand that you have a problem with access to your files and folders in your user folder. Let's see if we can get access to it.

    I would like to start by looking at your home folder permissions. If they are incorrect, you will need to make sure that you are the owner. Take a look at the procedure described below to take care of this.

    OS X El Capitan: If you do not have permissions to open a file or folder
    https://support.Apple.com/kb/PH22196

    Take it easy

  • How to lock access to the application user interface?

    Hello

    Our user interface application is configured to start automatically in the background when the BlackBerry is turned on.

    We have a configuration property (ShowUserInterface) in the application that will allow users to access the user interface by clicking on the application icon.

    Application continues to run in the background regardless of whether or not the ShowUserInterface configuration setting is 1 or 0.

    If the device is configured with ShowUserInterface = 1, the user interface does not appear to the user until the user clicks on the icon of the application. If the user closes or closes the application then it will continue to run in the background and maintain its condition.

    By clicking on the application icon again will open the application in its state of the screen.

    If the device is configured with ShowUserInterface = 0, then the user interface does not appear even when the driver click on the application icon.

    Please help how to achieve this?

    A code snippet

    public class MyApplication extends UiApplication
    {
        private Configuration config;
    
        private BackGroundThread _thread;
    
        public static boolean fromService = true;
    
        // Boot
        public static void main(String[] args) {
            if (args != null && args.length > 0 && args[0].equals("gui")) {
                // code to initialize the app by icon click
                fromService = false;
                MyApplication app = new MyApplication();
                app.enterEventDispatcher();
            } else {
                MyApplication app = new MyApplication();
                app.enterEventDispatcher();
            }
        }
    
        public MyApplication() {
            if (fromService) {
                _thread = new BackGroundThread(); // create a new separate thread
                _thread.start(); // start the thread
    
            } else {
                if (config.isShowUserInterface()) {
                    pushScreen(new LoginScreen());
                } else {
                    // what to do here?
                }
            }
        }
    }
    

    When the user clicks on the icon of the application and config.isShowUserInterface () = false in this case I'm not pushing any screen of the application. It is for me only IU lost Focus error.

    Any help will be appreciated.

    Thank you

    Look at acceptsForeground().  I think that you can simply return config.isShowUserInterface ().

  • No access to the oracle user to disk HARD drives

    Aloha!

    I installed Oracle 11 g R2 64 bit on Oracle Linux 5 update 7. To create an instance, assigning components of database on 3 hard disks allocated, I was invited with an error saying "cannot create the directory said. It seems that oracle (user) does not have access or sufficient permissions to run the creation of such directory. The problem is of course oracle user had no permission. How can I give an oracle as a license to the user?

    Thanks in advance.

    Hades

    Salvation;

    What is owner of these courses? What ls - lrt return on the exsiting path? Have you tried to use chmod or chown command to can give rights w/r to your oracle user?

    Use chmod and chown command man man chmod and chown man on your screen of telnet.

    You can also google for can see the use of these two commands

    Respect of
    HELIOS

  • How to accept the array as a parameter of stored procedure

    Hi, this is the scenario

    the java team send me a table of numbers as an input for my procedure.

    the size of the array can be dynamic... I do not know the size

    what I have to do is

    I have to write a procedure that must accept this table as parameter
    crosses of the first element of the array too the end of the array to each value in the table

    and get on a table for this value and remove this line in the table

    How can I do?

    Please suggest

    concerning
    REDA

    Published by: raj_fresher on May 7, 2009 11:42

    Raj,

    Here is the code

    --This is you will create
    create or replace type TYP_PHONES as table of Varchar2(15) ;
    /
    --- This will be your procedure
    create or replace
    procedure give_me_an_array1( p_array in TYP_PHONES )
    as
    begin
    -- Do whatever you want to with the data you get
    for i in 1 .. p_array.count
    loop
    dbms_output.put_line( p_array(i) );
    end loop;
    end;
    /
    

    Tell your guy java to define this table as below

    String[] intArray= {"john","miller","scott"};
    ArrayDescriptor descriptor =ArrayDescriptor.createDescriptor( "TYP_PHONES", conn );
    ARRAY array_to_pass = new ARRAY( descriptor, conn, intArray );
    

    * [Full active code | http://db-oracl.blogspot.com/2009/05/passing-arrays-from-java.html] *.

    SS

Maybe you are looking for

  • Zoom r16 output does not reflect the master Pro Logic output

    I have a Zoom R16 hooked to Logic Pro X on El captain. Everything seems to work fine, but the release of the Zoom R16 always gives the sound, the monitor of the line, not the output of Logic Pro X inputs. If the helmet and out of line always give the

  • Cannot open the network

    I have a HP dv6000 that, until recently, I had connected to Comcast over a modem and was able to connect other computers in my house with this 'parent '. through a router.  I went to a unit which is connected to the same modem and router and the othe

  • Installation of WinXP SP2 on Satellite U300 - Intel ICH7M?

    Hi ppl, I just bought a brand new U300-10s and I tried to install XP pro sp2 with the appropriate drive (I assume) ICH7M_32bit. I made it trough a usb drive external hard toshiba, the computer found the driver about this, but at some point during the

  • Satellite L300-129 - upgrade CPU (NOT to improve game performance)

    I'm running a Toshiba L300-129 and I want to know if I can improve my processor. If so, what upgrade options I have? I use my laptop for games, rather, I need extra CPU for music, produce software that I use. (Cubase5) The upgrade of the processor wi

  • Deleting printer problem

    I have a couple of dead printer on my XP system. When I try to delete them, Windows refuses. "Says it's ' remove - offline", but again, nothing happens. I tried refreshing the printer spooler, but that did not help. The current printer is correctly i