Write procedure for extraction of files and tight... as an object of Type

I want to extract the records in a table using Type... as... Oppose so I created a procedure but it gives me an error and I tried many things but can not remove the error please tell me the correct code.
Here is my code

create or replace type SheikYerbouti as object)
EmpNo number 4,
name varchar2 (10),
number (7.2) salary.
use varchar2 (10),
HireDate date,
number (7.2), comm.
DEPTNO number (4));

----------------------------------------------------------------------------------------------
create or replace procedure p (no number)
is
SheikYerbouti v;
Start
SELECT name, salary, job, empno, hiredate, comm, deptno in v from emp where empno = no;
insert into emp5 values(v.empno,v.name,v.salary,v.job,v.hiredate,v.comm,v.deptno);
end;
---------------------------------------------------------------------------------------
but it gives an error

LINE/COL ERROR
-------- ------------------------------------
5/58 PL/SQL: ORA-00947: not enough values
5/1 PL/SQL: statement ignored

I'm not able to remove the error don't know where I am wrong please help

I would like to add - you cannot select in variable uninitialized object, you must use a constructor like this


select emp_rec(empno,name,salary,job,hiredate,comm, deptno) into v from emp where empno = no;

Tags: Database

Similar Questions

  • Y at - it an easy way to have a version number that the code VI has access to, and which is used as the version number for the executable file and the installer builds?

    Y at - it an easy way to have a version number that the code VI has access to, and which is used as the version number for the executable file and the installer builds? Now whenever I update my software I need to change the global variable where I store the version number, and then when I build I have in hand, open the properties and change the version number for the executable file and the installer. Is there an easy way to make these as all corresponding automatically?

    Have you tried a search? This question comes up a LOT. Here are the results of a search: http://forums.ni.com/t5/forums/searchpage/tab/message?location=Node%3A170&q=application+version#mess...

  • Do I need another new Windows Update to activate my Windows Vista to access the free secure recommended downloadable program for downloading various files and any other information you want?

    Original title: I need an another new Windows Update to activate my Windows Vista to access the downloadable recommended secure free program for downloading various files and any other information you want? Thank you! Randle

    Please help if you have the time giving me the name of a free secure downloadable software that works for Windows Vista, when the word is not on my PC for

    downloadind attached to power open, save, display, print and other means that this downloadable can help. I would be very grateful for your help! I works but not Word and PowerPoint if you have any suggestions that will be very solve my delimma of not be able to successfully download these things I just Gillies

    Your expert advice, patience, attention to my request, time, are all valuable and appreciated! Thanks again and have a wonderful day! Randle

    Hello Randle,

    You can use your favorite search engine & download any third-party software that might be used to.


    Note:
    this response contains a reference to third party World Wide Web site. Microsoft provides this information as a convenience to you. Microsoft does not control these sites and no has not tested any software or information found on these sites; Therefore, Microsoft cannot make any approach to quality, security or the ability of a software or information that are there.

    Hope the helps of information.

  • How can I change my fill of tru for the pdf file and the sign? It will never change.

    How can I change my fill of tru for the pdf file and the sign? It will never change.

    In Adobe fill & sign you can add text, checkmarks, an X, a point and a circle and sign documents.  It does not "change" the existing content of the document.  Here is a tutorial: Tutorial: Introduction to Adobe fill & sign

    Thank you

    Josh

  • SQL for extracting industries, users and their reports?

    Hello

    I could get in sql, users and their reports or business sectors and their users, but I can't recover the business sectors, users and reports in the same sql.

    I searched in the tables of eul without success. I guess someone has already done?

    Thank you

    Hello

    The problem you have is that you try to mix items that don't go together.

    As you have already determined, you can have a script for users to query with access to business areas, and you can also have a script for queries users who access or own reports. However there is no link between the districts and business reports.

    Discoverer reports are validated against the records, not business districts. If a report uses 2 files and there are 10 industries that contain these files what industry do you that the report has been written against? The answer is none of them. You just happened to have a business district that is open at the time the drafting of the report, but frankly you might have used an any of them. Therefore, if a user opens a workbook that uses the files found in several business sectors, discoverer by default to the first business district name that contains all the files used and the user has access to.

    Hope this helps

    Best wishes

    Michael

  • Prepare disks for ASM (data files and FRA)

    I intend to place data files on a disc 1 (sd1) and disk2 (PSD) when the backup of files (FRA) on disk3 (SDC). Here's how I'd do:

    For data files
    Disk1 is divided into a single primary partition (with native Linux what ID 83 not formatted system)
    Disk2 is also divided into a single primary partition (with native Linux ID 83 system not formatted)

    oracleasm createdisk vol1/dev/sda1
    oracleasm createdisk vol2/dev/sdb1

    CREATE DISKGROUP DATA EXTERNAL vol1, vol2 REDUNDANCY;


    For backup FRA

    Disk3 is partitioned into four primary partitions: / Boot (ext3), / (ext3), swap (swap) and /u01 (ext3)

    The FRA will be put under the/U01 and then attend the ASM:

    oracleasm vol3/dev/sdc4 createdisk
    CREATE DISKGROUP DATA EXTERNAL vol3 REDUNDANCY;

    Now, the problem. (1) the/U01 has already be formatted in ext3; (2) Oracle (DBMS) software will also be place under/U01

    It will be a problem?


    Otherwise, I can put FRA on the same drive as the data files, i.e. on disk1 and disk2. In this case, I need to partition the disk 1 in two primary parititions sda1 and sda2 (native Linux system ID 83 not formatted), one for data files and another for FRA (do the same for disk2). The downside is that the data file and the file recovery will be on the same hard drive.


    Please offer some suggestions.


    Thank you

    Scott

    PS: in the environment of production, all the disc 1, 2 and 3 will be on hardware RAID 1.

    RAID 1 will protect you only a device failure. It won't protect you partition, the file damage system or user errors; It will be in the image of the errors and problems like any other data.

    So what happens if you delete by mistake / U01 or some other accident happens and you loose that partition? With your current setup, you will lose everything and will not be able to restore or recover the database. Put tablespaces FRA and DB on the same physical device is certainly a very bad idea, whether or not it is a RAID.

    ASM is not a software RAID 1 mirror. It ensures redundancy of data based on file extensions and knows about files of Oracle database, which is a very good thing. You probably do not want to specify 'external redundancy.

    In a production system, you'll certainly want to mux the critical data and to store the DB controlfiles, redo logs and finally archivelogs on media separate physically in order to avoid the single point of failures wherever possible. You can use partitions and volumes in ASM, but they should be separate physical drives, otherwise you will bypass the ASM data redundancy. You must also have a solid strategy for RMAN backup. The FRA is supposed to store backupsets RMAN, copies of the image, the important archivelogs and multiplexes of the copies of the database files and should therefore always on a separate physical disk.

    Unless you simply play, I strongly suggest that review you your current configuration.

    Published by: Dude on June 29, 2012 04:55

  • EliteBook 840 2: Procedure for software install OS and HP on the new hard drive

    Hello

    After a hard drive failure, I got a new hard drive and CDs (one with Windows 10) 2 and 1 with HP Appplication and recovery driver.

    I am looking for the procedure correctly reinstall my new hard drive, as if you just plant: with partition drivers and so on... But I've been to find such a procedure on the web.

    Could you tell me if there is somewhere? or could you help me by telling me if I should install the operating system first and then the HP software or on the contrary, before you start. Thanks in advance

    Hello

    Please use the following steps:

    1. install the new HARD disk on your computer,

    2. start Windows 10 DVD machine. This process will install Windows 10 on your computer,

    3. put the second DVD of your computer to install the drivers and tools/software on your computer.

    4. run the Windows updates.

    Steps 1 to 3 will bring your machine back to factory settings,

    Step 4 will bring machine to update.

    After that, you can install other software or programs.

    Kind regards.

  • Can I use Lable 8.6.1 to extract the files and manipulate them using NI_SCC.lvlib

    I'm trying to generate some configurations and documentation files that I want to manage with SVN.  The NI_SCC.lvlib there hooks for this?  If so is there an example I can look at?  My main problem is the references (refnum project)

    Any help would be great!

    Thank you

    Rich

    Yes, you can use the interface of NOR.

    However, you will need to use an additional software module to communicate with a server SVN (pushOK SVN).

    Take a look at the connectivity-> Source Control palette.

    Tone

  • Generate the trace for another session file and change the path

    Hello

    Please let me know how to configure tracing for another session and it is also possible that the trace file can be re-directed to another path than the default path user_dump_dest?

    Kind regards

    VN

    Use DBMS_MONITOR. SESSION_TRACE_ENABLE (and SESSION_TRACE_DISABLE).

    as far as I know, you cannot change the default location of the trace file.

    In a session, you can change its path filename with ALTER SESSION SET TRACEFILE_IDENTIFIER = "";

    Hemant K Collette

  • Export a table for the flat file and must insert sysdate in flat file column

    Hi, I created an interface allowing to export an oracle table to a csv file. All the columns in the table work well. Then I need to insert the sysdate in a column in the csv file.

    I made the map as working in the transit area, implementation is to_char(sysdate,'dd/mm/yyyy'). But the result is insert in column 14.

    I tried to create a variable refreshing that choose double to_char(sysdate,'dd/mm/yyyy'), maps then as the csv file column, but he only insert 1 row and the format is YYYYMMDD.

    I tried to use SELECT '< % = odiRef.getSysDate ("YYYYMMDD") % >' double to the variable and it also only insert a line in the flat file.

    I used the same methodology in ODI10g, it works fine.

    So, I wonder how it can be implemented in 11g.

    Thank you

    It turns out that I used the snapshot_date as a field name, it may be a reserved word. After that I changed the name of the field, it works fine. Thank you.

  • Product key for microsoft office home and Student 2007 is the wrong type of key. Cannot validate the license.

    I bought a pc laptop hp Pavilion dv2000 model in September 2007, of the circuit city which is no longer in business here. I used the microsoft office home and student software that was previously installed a dozen times. Whenever I go to use it it asks me to enter a product key of 25 characters for the license validation. I tried to enter, it accepts all characters except the last. I don't think I should pay for the support, I bought a software that was supplied with the pc. HP is no help because my one year warranty has expired. Microsoft wants to sell me a support package. The message said after 25 times to log on to the program without posting, I lose complete access. Does anyone have a solution to this problem I have? I have windows vista Home premium.

    Microsoft Office does not come with a free version of Office installed; He never has.

    What you have / have had a free trial of Office on your laptop.

    The figure of 25 product key on the bottom of your laptop is Vista product key, not the trial Office of one.

    You can buy Office, to use it. Mick Murphy

  • HEEELP: Re-create the procedure for the Essbase.sec file in 11.1.2.0

    Hello
    What is the procedure for recreating the file Essbase.sec in 11.1.2.0 Essbase environment... In older versions, it has been used to remove Essbase.sec, start the Essbase server and it has been recreated a file void essbase.sec... But in 11.1.2.0 with Shared services... is the procedure? If it is deleted from the file essbase.sec... start Essbase Service recreates and will update SSP Outlook2003?


    Please someone help...

    Thank you...

    Hi Alex,

    Unfortunately, I have about 20 questions to ask in order to really be able to provide useful guidance, but at least I recommend checking out 'The Essbase security file management' section of the Essbase DBAG and eventually the Oracle Hyperion Enterprise Performance Management System Backup and Recovery Guide.

    11.1.2.1 SER60-online http://docs.oracle.com/cd/E17236_01/epm.1112/esb_dbag/frameset.htm?launch.html

    11.2.1.1-online http://docs.oracle.com/cd/E17236_01/epm.1112/epm_backup_recovery_11121/frameset.htm?launch.html BURG

    Thank you

    Todd Rebner

  • A SCN for the entire database and the different SNA for the data files?

    DB Version: 11 g

    I always thought that there is a unique SCN for the database as a whole.
    A quote from the link below as
    When a control point is completed, Oracle stores the RCS individually in the control for each data file file
    http://www.dbapool.com/articles/1029200701.html


    What does that mean? There is a SNA for the entire database, and there are individual SCN for each data files?

    Well, unfortunately, the article says more bad than good things. Or if I can't call them wrong, they are rather confusing and rather than clear things for the reader, its making them appear to look more confused.

    First things, YVERT is used for read consistency (CR) mechanism and the backbone of the notion of Multiversioning. The control point is the mechanism to help that recovery is decided. Contrary to what said article, not any kind of checkpoints update both the data file and the control file, and also, there is not a type of them as well. In addition, the article says that the LAST_CHECKPOOINT is set to NULL, while its actually set to the infinity since it is not possible to detect the moment when the database is opened, that the last issue of control over the file would be. In the case of complete control point, this number is saved and is also associated with the toa Controlfile own database leader at the next startup. If this is not the case, there is an inconsistency in the stop_checkpoint of the data file and the stop_checkpoint reocrded in the control file, leading to a recovery of the instance.

    There are several types of control points. Similarly, there are several types of SNA as well. Without going into the details of these, IMO, the article simply means that when the control point write over a file passes, oracle updates the file checkpoint on it and this is recorded in the Controlifle. as well.

    HTH
    Aman...

  • The analysis of file for the source files

    Hello



    I need to analyze the specified source file to extract all files and processing them in the order (launch a script on the file). I have a feeling it's possible via Jython or Shell scripts (Source file is located on the Unix machine). But as I have never Jython, I wish I had some advice how it can be done.



    Thanks in advance

    Hi Shamil,

    Let's get this straight: you call a scenario for each file in a folder, right?
    I believe that the best way to solve that is the case:
    (1) you must load the list of files in a directory (dir or ls, as the operating system) in a temporary table. In this case, you run the command output to a text file (dir / b > test.txt) and then load that file into the temporary table.
    (2) once you create an ODI procedure would then name the source that you select a file in the temporary table and the target, you call the script, the name of the parameter file.
    (3) in the Datastore ResourceName put the variable that will receive the name of the file.

    I hope I helped

    [of]

    Mateus Balen

  • recover files from USM2T. UNC (old XP files and settings transfer tool) folder in windows 7

    Breath my old XP and put in place a new W7 Pro 64 b. stupid did me not carefully the manual before I went away to transfer all files and settings XP, the wizard files and Settings Transfer (FAST) "old."

    Now I'm stuck which dominates the stream _ with my nice, clean, but oh so empty, installation of Windows 7 Prof 64 b.

    Problem is that the wizard of Windows Easy Transfer (WET) native in W7, it will come out looking for a *.mig file - and guess what! There is no file in the USM2T source folder. UNC. Just a bunch of GOOD *. DAT files.

    Can someone give me a name on a good therapist or better yet, to guide me?

    Whatelse... ?  I found a GUI which is a wrapper for the MS-DOS command "fastconv" - but it's a bit unstable and it takes time awful lotta.

    Thanks in advance,

    Wolfbeach

    Hi wolfbeach ,

    Welcome to the Microsoft Answers community.

    I suggest you try the procedure described in step 2 of the link below.

    http://Windows.Microsoft.com/en-us/Windows7/help/upgrading-from-Windows-XP-to-Windows-7

    Hope this information is useful.

    Let me know if it worked.

    Thank you, and in what concerns:

    Umesh P - Microsoft Support

    Visit our http://social.answers.microsoft.com/Forums/en-US/answersfeedback/threads/ Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for