How to select values if I know the fieldname in PL*SQL? [SOLVED]

There was a simple trick in SQL*PLUS:
DEFINE var='EMP_NUMBER';
SELECT &var FROM emp;
And the result was the same as:
SELECT emp_number FROM emp;
Does anybody know how to write this in PL*SQL procedure? I didn't find any similar things in forum... I have db8i and 10g.
m.

Thank's a lot! I found this usefull article on Metalink as well:
Subject: Dynamic SQL
Doc ID: Note:62592.1 Type: BULLETIN
Last Revision Date: 06-MAR-2007 Status: PUBLISHED

Similar Messages

  • How to select values frm table giving the condition value at runtime in SQL

    Hi All,
    How to select values from a table by giving the condition value at runtime in SQL
    My SQL statement is select * from employee where empno=<empno>, this empno I want to provide at run time. Also I don't have any bind variables defined. Can anyone please tell how can I achieve this. Also do I have to write a SQL or pl/sql statement.

    Hi Roshni Shankar,
    You can use substitution variable in case of SQL.
    SQL> select * from employees where emplployee_id = &emp_id;
    Enter value for emp_id: 100
    old   1: select * from employees where emplployee_id = &emp_id
    new   1: select * from employees where emplployee_id = 100If you want to put condition on varchar values then eighter provide values in single quotes or use single quote for substitution variable.
    SQL> select * from employees where last_name = &emp_name;
    Enter value for emp_name: 'King'
    old   1: select * from employees where last_name = &emp_name
    new   1: select * from employees where last_name = 'King'
    no rows selected
    SQL> select * from employees where last_name = '&e_name';
    Enter value for e_name: King
    old   1: select * from employees where last_name = '&e_name'
    new   1: select * from employees where last_name = 'King'In case of pl/sql you can pass values to procedure and you can use those values at run time.
    create or replace procedure test (p_emp_id number)
    as
       v_last_name      varchar2(100);
    begin
       select last_name
       into    v_last_name
       from  employees
       where employee_id = p_emp_id;
       dbms_output.put_line(p_emp_id ||'    ->    '||v_last_name);
    end;
    show errors
    SQL>exec test(100);
    SQL>exec test(101);Edited by: Gaurav Bhide on Oct 29, 2012 4:07 AM

  • How to get values/data stored in the database into a list-item.

    how to get values/data stored in the database into a list-item.
    i tried to make a list item without any values assigned to it...but i got the below error.
    FRM-30191: No list items defined for required poplist.
    or
    FRM-32082: Invalid value for given item type.
    List EMPNO
    Item: EMPNO
    Block: EMP
    Form: MODULE5
    FRM-30085: Unable to adjust form for output.
    then according to some docs, i tried the the following for the trigger
    when-new-form-instance
    declare
         rg_name varchar2(40) := 'emp_rec';
         status number;
         groupid recordgroup;
         it_id item;
    begin
         it_id := Find_Item('empno');
         groupid := create_group_from_query(rg_name, 'select empno from emp');
         status := populate_group(groupid);
         populate_list(it_id, groupid);
    end;
    but yet didnt work... :(
    so how the heck do i get values fetched from the database table into the list item?

    for list items you need to values in the record group, one is the shown value and one is the returned value.
    Check out the online help for the populate_list built-in.
    You'll need something like select ename,ename from emp as the record group query.

  • Apple ID - An incorrect Rescue email address was entered, how do I change this without knowing the answers to my security questions?

    An incorrect Rescue email address was entered, how do I change this without knowing the answers to my security questions?
    Thanks!

    Go here to manage your Apple ID
    https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/wa/directToSignIn?loc alang=en_US

  • Hello, i just forgot my security question , so how could i change them or know the answers that i put them before thanks

    hello, i just forgot my security question , so how could i change them or know the answers that i put them before thanks

    See this... http://support.apple.com/kb/HT5312

  • How to select value from database view with * in wher clause

    Hi ,
      I ahve a database view with some fields.
    Now my requirement is to serach a single row on the basis of process type.
    Process type can have values like ZBA,ZBC,ZBD,ZBE or similarly anything starting with ZB.
    Now i know that starting two letters will be ZB , but dont knwo the last letter.
    So how should i use select query for the same?
    Should i use like operator for the same?
    regards
    PG

    hi,
    u can use character '%'.sample code like this
    SELECT reltype
                 instid_a
                 catid_a
                 instid_b
                 FROM /dbm/ord_docflow
                 INTO TABLE it_link
                 FOR ALL ENTRIES IN it_pnwtyh
                 WHERE  instid_a  =  it_pnwtyh-instid_a AND
                 instid_b  LIKE 'QMSM%'  AND
                 typeid_a  = 'BUS2400'  AND
                 typeid_b  = 'BUS2400' AND
                 catid_a   = 'BO' AND
                 catid_b   = 'BO' AND
                 reltype   = 'VONA'.
    this is similar to using* while we fetch values from table.in the above code only i no QMSM rest values not sure,so used QMSM%

  • How to select values of nested elements that have maxOccurs="unbounded"

    I have the following xml schema and xml data:
    <?xml version="1.0" encoding="UTF-8"?>
    <!--W3C Schema generated by XML Spy v4.4 U (http://www.xmlspy.com)-->
    <xs:schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:qbl="http://10.0.1.233:8080/home/cpa/xsd/qbl.xsd" xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0" xdb:storeVarrayAsTable="true">
    <xs:element name="QBL_Envelope" type="QBL_Envelope_Type" xdb:defaultTable="MYQBL"/>
         <xs:complexType name="QBL_Envelope_Type">
         <xs:sequence>
                   <xs:element ref="Transmission_Date" minOccurs="0"/>
                   <xs:element ref="QBL" maxOccurs="unbounded"/>
              </xs:sequence>
         </xs:complexType>
    <xs:element name="Transmission_Date" type="xs:string"/>
    <xs:element name="QBL">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="QBL_Number"/>
                        <xs:element ref="Priority"/>
                        <xs:element ref="Date_Prepared"/>
                        <xs:element ref="Line_Item" maxOccurs="unbounded"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="QBL_Number" type="xs:string"/>
    <xs:element name="Priority" type="xs:string"/>
    <xs:element name="Date_Prepared" type="xs:string"/>     
         <xs:element name="Line_Item">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Item_Name" maxOccurs="unbounded"/>
                        <xs:element ref="Line_Item_Weight"/>
                        <xs:element ref="Line_Item_Cube_Info"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="Line_Item_Cube_Info">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Line_Item_Cube" minOccurs="0"/>
                        <xs:element ref="Line_Item_Cube_Qualifier" minOccurs="0"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="Line_Item_Cube" type="xs:string"/>
    <xs:element name="Line_Item_Cube_Qualifier" type="xs:string"/>
    <xs:element name="Item_Name" type="xs:string"/>
         <xs:element name="Line_Item_Weight" type="xs:string"/>
    </xs:schema>
    insert into MYQBL values(
    xmltype('<QBL_Envelope>
         <Transmission_Date>030531</Transmission_Date>
         <QBL>
              <QBL_Number>316180J2</QBL_Number>
              <Priority>3</Priority>
              <Date_Prepared>20030530</Date_Prepared>
              <Line_Item>
                   <Item_Name>FREIGHT ALL KINDS</Item_Name>
    <Item_Name>Specail Item</Item_Name>
                   <Line_Item_Weight>0000212</Line_Item_Weight>
                   <Line_Item_Cube_Info>
                        <Line_Item_Cube>31.1</Line_Item_Cube>
                        <Line_Item_Cube_Qualifier>E</Line_Item_Cube_Qualifier>
                   </Line_Item_Cube_Info>
              </Line_Item>
    <Line_Item>
                   <Item_Name>AAAAAA</Item_Name>
    <Item_Name>BBBBBBBB</Item_Name>
                   <Line_Item_Weight>0000512</Line_Item_Weight>
                   <Line_Item_Cube_Info>
                        <Line_Item_Cube>67.1</Line_Item_Cube>
                        <Line_Item_Cube_Qualifier>E</Line_Item_Cube_Qualifier>
                   </Line_Item_Cube_Info>
              </Line_Item>
    </QBL>
    </QBL_Envelope>').createSchemaBasedXML('http://10.0.1.233:8080/home/cpa/xsd/qbl.xsd'));
    My question is how to select
    /QBL_Envelope/QBL/QBL_Number,
    /QBL_Envelope/QBL/Line_Item/Item_Name,
    /QBL_Envelope/QBL/Line_Item/Line_Item_Weight,
    /QBL_Envelope/QBL/Line_Item/Line_Item_Cube_Info/Line_Item_Cube
    /QBL_Envelope/QBL/Line_Item/Line_Item_Cube_Info/Line_Item_Cube_Qualifier
    in a select stetament? (Note that these elements QBL_Number, Line_Item and Item_Name have maxOccurs="unbounded") actually I want to use the select statement to create a view.
    I tried the following select statement and it works fine:
    select extractValue(value(b), '/QBL/QBL_Number'),
    extractValue(value(b), '/QBL/Priority'),
    extractValue(value(b), '/QBL/Date_Prepared')
    from egbl e, table(xmlsequence(extract(value(e), '/QBL_Envelope/QBL'))) b
    Please advise. It is import to us. Thank you for your help in advance!!!
    The database version is 9.2.0.3.0 and the operating system is Windows 2000.
    Thanks,
    Mary Wu

    Hi Mark,
    Thank you for your reply and I really appreciate!
    I tried the select statement you gave me but I got error:
    SQL*Plus: Release 9.2.0.3.0 - Production on Fri Aug 1 09:11:03 2003
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.3.0 - Production
    With the Partitioning, Oracle Label Security, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.3.0 - Production
    SQL> set long 10000;
    SQL> set pagesize 10000
    SQL> select * from myqbl;
    SYS_NC_ROWINFO$
    <QBL_Envelope>
    <Transmission_Date>030531</Transmission_Date>
    <QBL>
    <QBL_Number>316180J2</QBL_Number>
    <Priority>3</Priority>
    <Date_Prepared>20030530</Date_Prepared>
    <Line_Item>
    <Item_Name>FREIGHT ALL KINDS</Item_Name>
    <Item_Name>Specail Item</Item_Name>
    <Line_Item_Weight>0000212</Line_Item_Weight>
    <Line_Item_Cube_Info>
    <Line_Item_Cube>31.1</Line_Item_Cube>
    <Line_Item_Cube_Qualifier>E</Line_Item_Cube_Qualifier>
    </Line_Item_Cube_Info>
    </Line_Item>
    <Line_Item>
    <Item_Name>AAAAAA</Item_Name>
    <Item_Name>BBBBBBBB</Item_Name>
    <Line_Item_Weight>0000512</Line_Item_Weight>
    <Line_Item_Cube_Info>
    <Line_Item_Cube>67.1</Line_Item_Cube>
    <Line_Item_Cube_Qualifier>E</Line_Item_Cube_Qualifier>
    </Line_Item_Cube_Info>
    </Line_Item>
    </QBL>
    </QBL_Envelope>
    SQL> select extractValue(value(q), '/QBL/QBL_Number'),
    2 extractValue(value(q), '/QBL/Priority'),
    3 extractValue(value(q), '/QBL/Date_Prepared'),
    4 extractValue(value(n), '/Item_Name'),
    5 extractValue(value(l), '/Line_Item/Line_Item_Weight'),
    6 extractValue(value(l), '/Line_Item/Line_Item_Cube_Info/Line_Item_Cube'),
    7 extractValue(value(l), '/Line_Item/Line_Item_Cube_Info/Line_Item_Cube_Qualifier')
    8 from MYQBL e,
    9 table (xmlsequence(extract(value(e), '/QBL_Envelope/QBL'))) q,
    10 table (xmlsequence(extract(value(q), '/QBL/Line_Item'))) l,
    11 table (xmlsequence(extract(value(l), '/Line_Item/Item_Name'))) n;
    select extractValue(value(q), '/QBL/QBL_Number'),
    ERROR at line 1:
    ORA-00904: "SYS_NT0jPUiVR5SS6VqgqEvU1LkQ=="."SYS_NC_ROWINFO$": invalid
    identifier
    SQL>
    Do you have any idea about it?
    Actually before I posted the message I had tried the same select statement and had got the same error.
    Again, thank you very much and I really appreciate your help.
    Mary Wu

  • How to select a random cell in the DataGridView?

    Good day
    I am new to the DataGridView control. I was wondering if one can select a random cell in the DataGridView and if it is possible can someone help me with the code or a link to do it please.
    Thank you.

    Hi Arno du Toit,
    Use the following code, you can select the specilized cell.
    DataGridView1.CurrentCell = DataGridView1.Rows[rowindex].Cells[columnindex];
    Select a random Cell?
    Random rnd = new Random();
    int rowMax = DataGridView1.Rows.Count;
    int colMax = DataGridView1.Columns.Count;
    if(rowMax > 0 && colMax > 0)
    int row = rnd.Next(1, rowMax); //get the random row index
    int column = rnd.Next(1, colMax); //get the random column index
    DataGridView1.CurrentCell = DataGridView1.Rows[row].Cells[column];
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to get IDOC #, If I know the sales order #? I tried in SE37 with*NEIGH*

    Hi Experts,
    I hv a sales order #, say, my_order.........its created from a IDOC via FM of IDOC_INPUT_ORDERS and message is ORDERS.
    So, let me know that, If I know the slaes order #, my_order, How to get its associated IDOC #?
    In SE37, I searched with key word NEIGHBOUR .........but, did not find any result!!
    thanq

    i went to WE05, and did looked all, in the 60days!!
    thanq

  • *SELECT: How to select value from cube into variable?

    Hi,
    I have an application that need lots of complex calculations.  Currently I am facing problem in retrieving a value from BPC application/database (BW cube) into a script logic local variable.  Let's say the application has  these  following dimensions
    1.  FYPD ( fiscal yr period. 200901, 200902 etc)
    2.  REGION ( A, B , C , D etc)
    3.  PRODUCT(Product ID)
    4.  VERSION ( ACTUAL, FORECAST etc)
    5.  AMOUNT (Sales Amount, signed data )
    Now I need to extract the sales amount into a local valriable where REGION = "A" and  PRODUCT = "SMK-1234" and FYPD = "200905"  and VERSION = "ACTUAL"
    What's should be the equivalent SELECT command? I tried but could not figure out. Any help?
    Regards
    DipM

    Hi DipM,
    There isn't really a concept of local variables for values in script logic. Instead, you'll want to use *WHEN, *LOOKUP, or MDX statements.
    For example, this will copy the value you mention into the PLAN version:
    *WHEN REGION
    *IS A
    *WHEN PRODUCT
    *IS SMK-1234
    *WHEN FYPD
    *IS 200905
    *WHEN VERSION
    *IS ACTUAL
    *REC(FACTOR=1,VERSION=PLAN)
    *ENDWHEN
    *ENDWHEN
    *ENDWHEN
    *ENDWHEN
    See *WHEN ([link|http://help.sap.com/saphelp_bpc70sp02/helpdata/en/36/339907938943ad95d8e6ba37b0d3cd/frameset.htm]) and *REC ([link|http://help.sap.com/saphelp_bpc70sp02/helpdata/en/25/8d51050c43496887ddff88f13e5f1a/frameset.htm]) documentation for more.
    As mentioned, you can also use *LOOKUP or MDX statements to look up values and drive calculations in *REC(EXPRESSION=....) statements. This functionality is outlined in the SP02 documentation addendum ([link|http://service.sap.com/~form/sapnet?_SHORTKEY=00200797470000088146&_SCENARIO=01100035870000000202&]).
    In the MS Version of BPC, there is a concept of local MDX variables that work with the specialized *GO script logic statement. This statement is not available in the Netweaver version.
    Ethan

  • How to select value of selectOneChoice

    Hello,
    First of all I want to describe what I want to do and then the preconditions for my case.
    What I want to do:
    I simply want a <selectOneChoice> Component which represents an enumeration of values.
    In database there is a column which has the value 'A' or 'P'.
    In the DataTransferObject´s mentioned below these values are represented with Character objects.
    If the DataTransferStructure mentioned below is loaded I want the <selectOneChoice> to display the current value originate from database.
    If I submit the DataTransferStructure (or DataTransferObject --> see below) I want that the selected value (of <selectOneChoice>) will be written to database.
    Preconditions:
    ADF BusinessComponenets are not used.
    Only ADF Faces and Bindings are used.
    I have defined a Bean wich executes functions over RMI on EJBs.
    This bean is used as DataControl to bind their return values to pages.
    It looks nearly like following class:
    public class FunctionalObjectServiceBean{
         public FunctionalObjectServiceBean() {
    public DataTransferStructure readObjectWithId(Long Id)
    throws Exception{
    DataTransferStructure has link to> DataTransferObject
    DataTransferObject has attribute> Character attributeA (with either value 'A' or 'P')
    I have defined a selectOneChoice in the jspx.
    DataTransferObjectAttr1 is an Iterator-Binding to the matching attribute in DataTransferObject.
    value="#{bindings.DataTransferObjectAttr1.inputValue}" should select the appropriate value originating from database on load.
    <af:selectOneChoice value="#{bindings.DataTransferObjectAttr1.inputValue}"
    label="#{bindings.DataTransferObjectAttr1.label}"
    required="#{bindings.DataTransferObjectAttr1.hints.mandatory}"
    shortDesc="#{bindings.DataTransferObjectAttr1.hints.tooltip}"
    id="soc1"
                                       valuePassThru="true">
    <af:selectItem label="Active" value="A" id="si1"/>
    <af:selectItem label="Passive" value="P" id="si2"/>
    </af:selectOneChoice>
    When I try to execute this example following errors occur:
    <FacesCtrlListBinding> <getInputValue> ADFv: In der Werteliste wurden keine gewählten Elemente gefunden, die mit dem Wert A des Typs java.lang.Character übereinstimmen.
    <Utils> <buildFacesMessage> ADF: Adding the following JSF error message: Erstellen eines Objekts vom Typ java.lang.Character aus Typ java.lang.String mit dem Wert A nicht möglich
    oracle.jbo.domain.DataCreationException: JBO-25009: Erstellen eines Objekts vom Typ java.lang.Character aus Typ java.lang.String mit dem Wert A nicht möglich
    Using converters has also no effect here.
    thanking you in anticipation

    I try to translate it in my words:
    <FacesCtrlListBinding> <getInputValue> In the value list no elements were found which match the value A with datatype java.lang.Character.
    <Utils> <buildFacesMessage> ADF: Adding the following JSF error message: Creating object of type java.lang.Character from source type java.lang.String not possible.
    oracle.jbo.domain.DataCreationException: JBO-25009: Cannot create an object of type:java.lang.Character from type:java.lang.String with value: A.

  • How does a 4G VoLTE UE know the destination SIP URI format to create the SIP INVITE

    This trace is the output from an ASR500 for a VoLTE call,
    For VoLTE the UE and IMS core network must support Public User Identities as defined in section 13.4 of 3GPP TS 23.003, which includes all of the following types of addresses:
    •Alphanumeric SIP-URIs
      sip:[email protected]
    •MSISDN represented as a SIP URI:
      sip:[email protected];user=phone
    •MSISDN represented as a Tel URI:
      tel:+447700900123
    sip:[email protected]
    In the SIP SDP you will see: sip:[email protected]
      Mobile Originating  UE:        sip:[email protected]
      Mobile Terminating UE:        tel:+14047808898
    Notice the two different formats.....
    Below in the initial SIP INVITE you will see that the MO (Mobile Originating) sends the SIP URI in  the proper format (1 of 3) to the MT (Mobile Terminating 4G  handset).
    My questions is: does the MO know the SIP URI format of the MT  (User Endpoint / 4G smartphone) because it has some sort of Address Book, or is that the designated format for a SIP INVITE   (to: tel+###########) because he MO knows the MSIDSN (tel number) dialed  .
    I do not understand how the MO knows how to format the SIP URI format of the MT (Mobile Terminating) and would appreciate any insight into this.
    PROTOCOL PAYLOAD FOLLOWS:
    2600:100c:8221:6dc9:f77a:8b7:5e38:a5d5.60717 > 2001:4888:3:fe0f:c0:105:0:17.5060: . [tcp sum ok] 1:1357(1356) ack 1 win 214 <nop,nop,timestamp 64706 423317258> (len 1388, hlim 64)
    PROTOCOL PAYLOAD ENDS.
    PDU HEX DUMP FOLLOWS:
    0x0000 30ff 0594 c20d 0073 6000 0000 056c 0640 0            ......s`....l.@
    0x0010 2600 100c 8221 6dc9 f77a 08b7 5e38 a5d5 &          ....!m..z..^8..
    0x0020 2001 4888 0003 fe0f 00c0 0105 0000 0017                ..H.............
    0x0030 ed2d 13c4 e245 e405 fcb6 417e 8010 00d6                .-...E....A~....
    0x0040 f720 0000 0101 080a 0000 fcc2 193b 4f0a                 .............;O.
    0x0050 494e 5649 5445 2074 656c 3a2b 3134 3034               INVITE.tel:+1404
    0x0060 3738 3038 3839 3820 5349 502f 322e 300d                7808898.SIP/2.0.
    0x0070 0a4d 6178 2d46 6f72 7761 7264 733a 2037                .Max-Forwards:.7
    0x0080 300d 0a52 6f75 7465 3a20 3c73 6970 3a5b                0..Route:.<sip:[
    0x0090 3230 3031 3a34 3838 383a 333a 6665 3066                2001:4888:3:fe0f
    0x00a0 3a63 303a 3130 353a 3a31 375d 3a35 3036                :c0:105::17]:506
    0x00b0 303b 6c72 3e0d 0a56 6961 3a20 5349 502f 0               ;lr>..Via:.SIP/
    0x00c0 322e 302f 5443 5020 5b32 3630 303a 3130 2.               0/TCP.[2600:10
    0x00d0 3063 3a38 3232 313a 3664 6339 3a66 3737                0c:8221:6dc9:f77
    0x00e0 613a 3862 373a 3565 3338 3a61 3564 355d                a:8b7:5e38:a5d5]
    0x00f0 3a35 3036 303b 6272 616e 6368 3d7a 3968                     :5060;branch=z9h
    0x0100 4734 624b 3030 3033 3335 3933 2d31 6361                G4bK00033593-1ca
    0x0110 6630 3633 340d 0a43 5365 713a 2031 2049                f0634..CSeq:.1.I
    0x0120 4e56 4954 450d 0a46 726f 6d3a 203c 7369                NVITE..From:.<si
    0x0130 703a 2b31 3931 3236 3735 3738 3639 4076                p:+19126757869@v
    0x0140 7a69 6d73 2e63 6f6d 3e3b 7461 673d 3534                  zims.com>;tag=54
    0x0150 3436 375f 3030 3033 3339 6130 2d33 6665                467_000339a0-3fe
    0x0160 3439 3434 380d 0a54 6f3a 203c 7465 6c3a                49448..To:.<tel:
    0x0170 2b31 3430 3437 3830 3838 3938 3e0d 0a41                +14047808898>..A

    Hi Tod,
    The "session target registrar "  point to the SIP-TRUNK to the PSTN, as detailed exaplaination:
    session target (VoIP dial peer)
    To designate a network-specific address to receive calls from a VoIP or VoIPv6 dial peer, use the session target command in dial peer configuration mode. To reset to the default, use the no form of this command.
    A ideal situation would be to use session target ipv4: of the ITSP:
    dial-peer voice 105 voip
    description **Outgoing Call to SIP Trunk**
    translation-profile outgoing PSTN_Outgoing
    destination-pattern 91%...........
    session protocol sipv2
    session target ipv4:11.11.11.11:6034 <<(1st SIP-TRUNK)
    voice-class codec 2 
    dtmf-relay rtp-nte
    no vad
    dial-peer voice 106 voip
    description **Outgoing  2ND Call to SIP Trunk**
    translation-profile outgoing PSTN_Outgoing
    destination-pattern 91%...........
    session protocol sipv2
    session target ipv4:22.22.22.22:6035 <<(2ND SIP-TRUNK)
    voice-class codec 2 
    dtmf-relay rtp-nte
    no vad
    Rate the post accordingly.
    Regards,
    Kevin

  • How to reset security questions without knowing the answers?

    Ok so it isn't that complicated and i have done this before, but I cant figure out how to reset my security questions without knowing the answers.

    You need to ask Apple to reset your security questions; this can be done by phoning AppleCare and asking for the Account Security team, or clicking here and picking a method, or if your country isn't listed in either article, filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (105903)

  • How do you unlock ipad i know the passcode

    How do you unlock my ipad.  I know the passcode. I was checking out the find ipad function and locked it. help

    Did you lock it via the Find My iPad function? If so, you've overridden the passcode with whatever you set in the Find My iPad screen. Have you indeed tried whatever code you set there?

  • How to get value and name of the n'th parameter in a pl/sql funct./proced.

    procedure test(name varchar2, birthdate date, zip number, country varchar2);
    in procedure x I do
    test('Michael Postmann', to_date('03.01.1983', 'DD.MM.YYYY'), 7461, 'AUSTRIA');
    And this should htp.print the following:
    test: name=Michael Postmann,birthdate=1983/01/03,zip=7461,country=AUSTRIA
    In procedure test I want to know:
    *) What is the name of myself (the procedure)
    *) Optionally: Am I a procedure or a function?
    *) How many Parameters do I have?
    *) What are the values of them?
    *) What are the names of them?
    *) Optionally: What are the types of them?
    What I actually want to do is:
    I have a procedure for logging errors. So in my program I call this function frequently and I want it to log the current time, a string passed to the logging function, the client's ip, etc.... but it should also log a list of the parametrs and values of the procedure/function where the error occoured.
    Is there any way to do this (I think in C this is done by argc and argv, but a string containing all the information (as you get it from the WebDb when something goes wrong) would be enough)?
    Thx in advance,
    Nomike aka Michael Postmann

    Name of procedure or function can be retrieved using DBMS_UTILITY.FORMAT_CALL_STACK:
    CREATE OR REPLACE FUNCTION fn_whoami (v_in varchar2)
    RETURN varchar2
    AS
    v_stack varchar2(1000) DEFAULT DBMS_UTILITY.FORMAT_CALL_STACK;
    v_job varchar2(500);
    v_name varchar2(100);
    BEGIN
    v_job := SUBSTR(v_stack,INSTR(v_stack,'function'),256);
    v_name := SUBSTR(v_job,1,INSTR(v_job,CHR(10))-1);
    return v_name;
    END fn_whoami;
    select fn_whoami('1') from dual;
    CREATE OR REPLACE PROCEDURE pr_whoami
    AS
    v_stack varchar2(1000) DEFAULT DBMS_UTILITY.FORMAT_CALL_STACK;
    v_job varchar2(500);
    v_name varchar2(100);
    BEGIN
    v_job := SUBSTR(v_stack,INSTR(v_stack,'procedure'),256);
    v_name := SUBSTR(v_job,1,INSTR(v_job,CHR(10))-1);
    dbms_output.put_line(v_name);
    END pr_whoami;
    exec pr_whoami;

Maybe you are looking for

  • Job Termination in source system-Dataload failure

    Hello Forum, We are on BW 3.1 and our source is SAP R/3 Enterprise. We have been facing a recurring problem for a dataload, that is JOB TERMINATION IN SOURCE SYSTEM. Details of the load: Target:Master Data Full load Processing:      PSA and InfoObjec

  • OIM 11g Installation: LADP Sync Problem

    I am trying to configure LADP sync with a OID/OVD on a separate machine then OIM. I have 4 vms. The first has oracle database. The second has OIM and SOA. The third has OAM and the admin server. OAM/OIM/SOA/admin all are in same domain. The fourth ha

  • ICloud MobileMe IMAP rejected password

    Greetings, After moving my MobileMe account to iCloud, I am now getting an error message in mail that states: The MobileMe IMAP server "p99-imap.mail.me.com" rejected the password for user "xxxxxxx" It keeps popping up a window asking me to enter my

  • Sorting contacts by state

    How can I show all the contacts that live in a given state? Searching works semi-OK for states like AZ, but fails for most because "ca" is part of many names and places. It seems like this would be easy - and I have 15 yr experience with macs being e

  • I can't start photoshop elements anymore

    When I bought my laptop (a packard bell easynote) about a year ago, it included both photoshop elements and premiere elements version 9. I've been using these programs ever since. However, last saturday, suddenly neither of the programs would start.