How can a type defined in a PL/SQL package be used by an object?

How can a type defined in a PL/SQL package be used by an object?
In the PL/SQL Reference manual it says that object attributes can be
types defined inside a PL/SQL package: How do you make this work?
Here is a sample that demonstrates what I am trying to do:
CREATE OR REPLACE
PACKAGE Phone IS
TYPE Phone_rectype IS RECORD (
Main VARCHAR2(12),
Home VARCHAR2(12),
Business VARCHAR2(12),
Mobile VARCHAR2(12),
Fax VARCHAR2(12),
Pager VARCHAR2(12)
END Phone;
CREATE OR REPLACE
TYPE customer_type
AS OBJECT (
CustNo NUMBER,
CustName VARCHAR2(30),
PhoneNumber Phone.Phone_rectype
This is the error that i get:
Warning: Type created with compilation errors.
Errors for TYPE CUSTOMER_TYPE:
LINE/COL ERROR
0/0 PL/SQL: Compilation unit analysis terminated
5/15 PLS-00201: identifier 'PHONE.PHONE_RECTYPE' must be declared
null

That's a good point, Justin - thanks for the advice. At the moment, our process of data validation isn't very well defined, so the table definitions aren't always the same beyond a core set. As we get more automated and able to develop table definitions flexible enough to accomodate all the quirks in client data, I may be able to consider moving to a single schema to take advantage of maintenance and performance improvements. My ultimate concern with doing that is that the datasets we're dealing with can be tens of millions of rows in size. Clearly, I'm no DBA, but I just assumed that we would be able to churn through these datasets faster if they were in a schema by themselves rather than lumped together into one huge half-a-billion row table?

Similar Messages

  • In Mail 7.3 on my Retina MacBook Pro on OS 10.9.4, how can I type from the keyboard into a mail message using the Apple Symbols font?

    In Mail 7.3 on my Retina MacBook Pro on OS 10.9.4, how can I type from the keyboard into a mail message using the Apple Symbols font?
    When I select the Apple Symbols font from the list accessed from under Format/"Show fonts"/collection-all fonts/Apple Symbol, and then continue typing, I get normal letters, if in a slightly different font.
    How can I type using the Apple Symbol font?  I want to use that font to include keyboard and cursor selections of actual screen symbols to help write easily understood explicit computer lesson emails to my 92 year-old mom from a few hundred miles away.
    Steve

    In Mail 7.3 on my Retina MacBook Pro on OS 10.9.4, how can I type from the keyboard into a mail message using the Apple Symbols font?
    When I select the Apple Symbols font from the list accessed from under Format/"Show fonts"/collection-all fonts/Apple Symbol, and then continue typing, I get normal letters, if in a slightly different font.
    How can I type using the Apple Symbol font?  I want to use that font to include keyboard and cursor selections of actual screen symbols to help write easily understood explicit computer lesson emails to my 92 year-old mom from a few hundred miles away.
    Steve

  • How can I access Constants Decalred in PL/SQL Package

    CREATE OR REPLACE PACKAGE PKGDIMCONSTANT AS
    ABCD123 CONSTANT NUMBER := 1942; --:NodeDef
    END PKGDIMCONSTANT;
    Testing in PL/SQL it is working
    BEGIN
    RetVal :=PKGDIMCONSTANT.abcd123;
    dbms_output.PUT_LINE( RetVal ); END;
    The output is : 1942

    Assuming you want to access them from SQL...
    You cant directly access the constants from SQL. I tried some tests and did not work.
    What you can do is write a PLSQL function in the same package to return the value of that constant and use that function.

  • How can I pre-define the default selection in a SelectOneChoice?

    How can I pre-define the default selection in a SelectOneChoice?
    (1) Here's my JSF-code:
    <af:selectOneChoice label="#{res['usercreate.input.sex']}"
    value="#{bindings.Sex.inputValue}"
    binding="#{SelectListBean.sexlist}"
    readOnly="false" autoSubmit="false">
    <af:selectItem label="#{res['data.sex.women']}" value="1"/>
    <af:selectItem label="#{res['data.sex.man']}" value="2"/>
    </af:selectOneChoice>
    (2): manged bean: to set the default value to be the first in the list, my managed bean as follows:
    import oracle.adf.view.faces.component.core.input.CoreSelectOneChoice;
    public class MBSListBean {
    private CoreSelectOneChoice sexlist;
    public MBSListBean() {
    public void setSexlist(CoreSelectOneChoice sexlist) {
    this.sexlist = sexlist;
    this.sexlist.setValue(1);
    public CoreSelectOneChoice getSexlist() {
    return sexlist;
    (3) when i launch the page, it often gives me such warnings:
    WARNUNG: Could not find selected item matching value "1" in CoreSelectOneChoice[UIXEditableFacesBeanImpl, id=_id7]
    how to solve the problem ?
    Thanks,
    wzzdx

    You could also set the default on your entity or viewobject, in the properties of your attribute.

  • How can I type on a PDF file? Do I need a specific version of Adobe to enter a text box?

    I would rather type my information onto the page rather than hand write it and I don't have access to a type writer. How can I type my info onto the application?? Please help!

    With Adobe Reader XI, you can add text comments and notes, as well as adding new text boxes using the Comment pane shown below:
    However, if you actually need to edit text, you'll need to purchase Acrobat XI from Adobe.

  • How can you type without using capitals at the beginning of a sentence?

    How can you type something without using a capital letter at the beginning of a sentence. It always automatically outs a capital letter and I don't want one because it could be a case sensitive password?

    Tap the Shift key to turn off caps

  • How can I type curved quotation marks on iPad2?

    I have recently started using Pages for both my Mac and iPad2 so I can continue typing on documents through iCloud. However, on my iPad, whenever I type quotation marks, rather than curved quotation marks, it is only allowing me to type straight quotation marks. How can I type curved ones? example:
    On Mac: “I like apples.”
    On iPad: "I like apples."

    EIther tap and swipe up or tap and hold the " key. This will bring up a menu of additional characters including the two curved marks. While your finger is still touching the screen, slide over to the character you want and then release.
    BTW, Further characters can be found by using this trick with other keys. For instance you can type a percentage symbol from the 0 (zero) key.

  • How can i type international alphabet characters into keywords, title, and captions in Lightroom 4?

    How can i type international alphabet characters into keywords, titles, and Captions in Lightroom 4?  Usual Microsoft key shortcuts not working.

    I haven't found a way to do that directly, but there is a workaround. It' s a bit cumbersome, so it's only good for the occasional character.
    In MS Word or any other text editor create a file that contains all the international characters you need.
    When you need to insert one of these characters into Lr (captions, title, keywords) copy the character from your text document and paste it into Lr where needed.
    On Windows Ctrl + C / V works fine.

  • TS3274 How can I type special characters like I can on my computer keyboard?

    How can I type in special characters that I do not see on my iPad keyboard?

    Look at the Rccharles answer on this post.
    https://discussions.apple.com/thread/5812929?tstart=0
     Cheers, Tom

  • How can i invoke a file chooser dialog box with out using input type=file

    how can i invoke a file chooser dialog box with out using <input type=file> can any one help me mail me to [email protected]

    You could use an applet...
    Or maybe Javascript has some way to do it.

  • How can I type numbers in persian language in firefox?(I can type letters in persian but I can't type numbers in persian language in firefox)

    How can I type persian number in forms in mozilafirefox ( I can type pesian letter but I can't type persian number)?
    == This happened ==
    Every time Firefox opened

    You can set that behavior with the pref bidi.numeral on the about:config page.
    See http://kb.mozillazine.org/About:config_entries#Bidi.
    You may have to update Firefox to a newer version as I don't know if your version supports the value of 5 (persiancontextnumeralBidi) and 6 (persiannumeralBidi)
    http://mxr.mozilla.org/mozilla1.9.1/source/modules/libpref/src/init/all.js#1029
    http://mxr.mozilla.org/mozilla1.9.2/source/modules/libpref/src/init/all.js#1078

  • I lost my iPhone device, how can I get my data back on another one without using an iCloud backup just back up on i Tunes, Please Help.

    I lost my iPhone device, how can I get my data back on another one without using an iCloud backup just back up on i Tunes, Please Help.??

    You can find the backup files and then copy them to a safe place if you are worrying about this.
    iTunes places the backup files in these places:
    Mac: ~/Library/Application Support/MobileSync/Backup/
    The "~" represents your Home folder. If you don't see Library in your Home folder, hold Option and click the Go menu.
    Windows Vista, Windows 7, and Windows 8: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
    To quickly access the AppData folder, click Start. In the search bar, type %appdata%, then press Return.
    Windows XP: \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
    To quickly access the Application Data folder, click Start, then choose Run. In the search bar, type %appdata%, then click OK.

  • How can I get the language of the user logged on using only DI API?

    Hello,
    how can I get the language of the user logged on using only DI API,
    without invoking the UI?
    Can I read the value from some table using sql?
    I could write to file the first user's connection to the language code in SAP and then use it from external program, but I do not like this solution ...
    I know only this possibility:
            '_SboCy ==> SAPbobsCOM.Company
            '_SboCys ==> SAPbobsCOM.CompanyService
            '_SboApp ==> SAPbouiCOM.Application
            CodLng Dim As String = ""
            Dim lng As SAPbobsCOM.UserLanguages _SboCy.GetBusinessObject = (BoObjectTypes.oUserLanguages)
            If lng.GetByKey (_SboApp.Language) Then
                codLng = lng.LanguageShortName
                'Etc. ..
            End If
            lng = Nothing
    Thanks

    Hi Enrico,
    The language settings are held on the user's Windows profile and not in the database. In SBO 2007A onwards there is an XML file that is created by the SBO client (previous versions stored the information in the registry). The file is called b1-current-user.xml and you'll find it in the temporary application data under the user's profile (by default this will be C:\Documents and Settings\<profile>\Local Settings\Application Data\SAP\SAP Business One for Windows XP). This XML file contains a node that looks like the following:
    <leaf kind="single" name="Language" type="String">
         <value>8</value>
    </leaf>
    where the value is the language id that should correspond to the same setting in the DI API. If your application will always run on a workstation where the SBO client is installed then you could read this XML file. Of course, this file may not exist for a particular Windows user if they have never opened the SBO client so you'd need to have a default setting.
    If you application will be installed on a workstation which doesn't have an SBO client installed on it then there is no way to tell what default language to use and you'll need to build this logic in to your own application (eg have a screen where the user can choose their preferred langauge and then store this as a config file in a similar way to how the SBO client works).
    Kind Regards,
    Owen

  • How can I setup a mail-specific passcode/restriction on iPad used by multiple family members?

    How can I setup a mail-specific passcode/restriction on iPad used by multiple family members?
    Have an Exchange mail account setup and accessible in my mail on iPad... however my kids use it and i would like to restrict them from accessing this specific portion of the device.  I tried viewing restriction options and do not see that i can apply a restriction specifically to Mail.  Thanks for your help.

    Not a feature of iOS. Check the AppStore to see if there are other
    mail apps that allow passcode protection.
    Or use Safari to log onto your email via a web-based interface and
    enter your credentials each time. A bit slower, but the kids will
    not know the details to login.

  • How can I get audio to play from my TV when using hdmi cable?  Video looks great, just no sound.

    How can I get audio to play from my TV when using hdmi cable?  Video looks great, just no sound.
    I've tried plugging the hdmi into the TV directly and the receiver.
    I get video every time.  HBO to Go , Xfinity, ABC, Youtube, etc...
    just no audio.  Any suggestions? 
    I've tried starting the apps then plugging in the hdmi cable.
    I never tried this before I upgraded to IOS 5.

    Claudiamil-
    I had not tried it with mine since upgrading to iOS 5, so I just did.  I'm using a small Vizio HDTV.  I did not try YouTube, but did try several videos and musical numbers.  In all cases there was sound, including stereo when the source had it.
    I assume you are getting sound from the iPad when the adapter is not connected, so the volume is not turned down.  Dah*veed's suggestion to reset may be what you need.
    Fred

Maybe you are looking for

  • Problem using bootcamp to install windows 8

    I just bought a new MacBook Pro and have updated the software to 10.9.1 I am trying to install window 8.1 using Bootcamp.  Windows is on a disk connected via an apple external drive. After initiating Bootcamp, downloading software to a USB drive, par

  • Cant change main enail address

    it is not letting me change my main email address as it says the one im changing it to is my rescue address but i have changed my rescue address to a different ine now.. v annoying as the existing main email is not in use anymore !

  • Using WLSTInterpreter with Maven

    I'm try to write an maven plugin for WLST, I'm using the following path to include weblogic in my classpath to avoid the weblogic.home error. No matter how do i set it, still get the same error ' java.lang.RuntimeException: error in finding weblogic.

  • T3 data loss- possible cold temperature issue

    Yesterday I was out in very cold weather -14F. My palm was in my shoulder backpack and was subjected to this cold temperature. Today when I turned it on, the unit had hard reset back to factory settings, dumping all data. Has anyone experienced this

  • Can the apple superdrive connect and be used on an imac?

    Can the Apple Superdrive be used with an iMac?