Checking for two database columns is null

hi all,
i am using Forms [32 Bit] Version 6.0.8.24.1 (Production)
i have two questions.
i have database multi record block and fields like code,name,email,p_email,notes
1. if the senario email and p_email both cannot be null
so in when-validate-record i have written like
if email is null and p_email is null then
  raise form_trigger_failure;
end if;what i am doing is correct?
2. if i enter code and name and close the form the form is not asking for commit simply close window is appearing with 'yes' and 'no' option. but if i enter name,code and any of field(email or p_email) then its asking for commit.
my question is why such behaviour is this is because of w-v-r?
but if i update(code and name)alone then the change is reflecting.
Please clarify my doubts.
Thanks..
Edited by: GD on Apr 10, 2011 5:40 AM

hi,
i have written the below code in w-v-r trigger and its firing accordingly
if email is null and p_email is null then
  raise form_trigger_failure;
end if;but in the same i have written the code as below but there is no impact
if email is not null and p_email is not null then
   set_item_property('code',update_allowed,property_false);
else
   set_item_property('code',update_allowed,property_true);
end if;in my second code the trigger is firing after i leave the record, which is of no use(still i can update the code column),
but in my first code form_trigger_failure has been raise if the two colulmns are null(for the same record)
my question is why its behaving in two different manner,according to me the first code should not raise error for the same record as its behaving in second code, otherwise the second code should also fire for the same record(but its firing once i try to move to other record).
Please clarify where i wrong? or is this is how trigger behaves?
Thanks..

Similar Messages

  • How to configurate system for two database under one server

    Hi Friends,
    I installed abd created A database by oracle 10GR4 in window 32 bit 2003.
    it works.
    Then i created other B database by DBCA under this server.
    When I shutdown immediate database.
    it works well. But I can not startup mount ot startup A database again,
    I got below message as
    SQL> startup mount;
    ORA-24324: service handle not initialized
    ORA-01041: internal error. hostdef extension doesn't exist
    SQL> startup;
    ORA-24324: service handle not initialized
    ORA-01041: internal error. hostdef extension doesn't exist
    SQL> startup;
    ORA-24324: service handle not initialized
    ORA-01041: internal error. hostdef extension doesn't exist
    From EM, I saw as
    A listen Status Up
    LISTENER
    Oracle Home          
    C:\oracle\product\10.2.0\db_1\BIN
    Location          
    C:\oracle\product\10.2.0\db_1\BIN\network\admin
    BUT agent connect Status          
    Failed
    Details          ORA-12505: TNS:listener does not currently know of SID given in connect descriptor (DBD ERROR: OCIServerAttach)
    A database instance down
    Host     salerpt.net
    Port 1521
    SID SALERPT
    Oracle Home C:\oracle\product\10.2.0\db_1\BIN
    Also I try to connect as
    SQL> connect sys/salel@salerpt as sysdba;
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    Form EM, I saw listen start up.
    Then I stop it. then restart it
    I can saw B db listen and can not see A db listen.
    also
    I saw that other B database works.
    My listen info as***************
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1\BIN)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = SALERPT.NET)(PORT = 1521))
    I check physical, two database use one common bin directory .
    I do not have any experience to handle two database under one oracle server.
    How to check and configurate DB server system?
    Thanks for help.
    Edited by: user589812 on Jan 4, 2009 8:17 AM

    Jim,
    Before starting the database A, did you set ORACLE_SID=A from command line? You can run as many instances you want from single server provided you enough memory, processing power. Also try starting your instances usign window services and check and post some lines from alert.log for database A.
    tnsnames.ora entry
    DATABASE_A =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = salesrpt.net)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = DATABASE_A)
    DATABASE_B =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = salesrpt.net)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = DATABASE_B)
      )Regards
    Edited by: OrionNet on Jan 5, 2009 10:55 AM

  • RMAN backup for two databases with similar DBID

    We have two databases with SID 'uiivc' and 'uiivc1' running from one of the HP Unix 11.11 PA-RISC server. I did configured RMAN backup for both databases. But it is found that both databases have same DBID [connected to target database: UIIVC (DBID=3005194057) for UIIVC & connected to target database: UIIVC1 (DBID=3005194057) for UIIVC1] and backup configured via crontab seen running fine with full backup at weekend and archivelog backup at daily for both databases. Now my query is that will it create any issues at time of restoration since both databases have similar DBID? Does RMAN uses DBID to distinguish databases?
    Kindly help to clarifiy
    Regards
    Manoj Thakkan
    [email protected]

    Hi Tycho,
    I configured RMAN to store controlfile backups in different folders on each database.
    UIIVC database:
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/hot_backups/rmanbkp/uiivc/cf%F';
    UIIVC1 database:
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/hot_backups/rmanbkp/uiivc1/cf%F';
    Server output:
    uii-79:uiivc1 > ls -lrt /hot_backups/rmanbkp/uiivc
    total 43904816
    -rw-r----- 1 oracle dba 21144928256 Jul 15 10:58 8rkk68p5_1_1
    -rw-r----- 1 oracle dba 287110144 Jul 15 13:41 8tkk6sfv_1_1
    -rw-r----- 1 oracle dba 862700544 Jul 16 08:00 90kk8sel_1_1
    -rw-r----- 1 oracle dba 152350720 Jul 16 08:09 92kk8tgg_1_1
    -rw-r----- 1 oracle dba 32145408 Jul 16 08:09 cfc-3005194057-20090716-01
    uii-79:uiivc1 > ls -lrt /hot_backups/rmanbkp/uiivc1
    total 24186112
    -rw-r----- 1 oracle dba 6373965824 Jul 13 13:10 83kk1ftf_1_1
    -rw-r----- 1 oracle dba 784803840 Jul 13 13:46 85kk1j5e_1_1
    -rw-r----- 1 oracle dba 1022674944 Jul 13 23:07 87kk2kjs_1_1
    -rw-r----- 1 oracle dba 1814230016 Jul 14 23:46 89kk591i_1_1
    -rw-r----- 1 oracle dba 1211042816 Jul 15 23:06 8bkk7tc0_1_1
    -rw-r----- 1 oracle dba 1165975552 Jul 15 23:10 8ckk7tnr_1_1
    -rw-r----- 1 oracle dba 10534912 Jul 15 23:10 cfc-3005194057-20090715-00
    And I saw backups are placing in the respective folders too. So with these settings, can I safely assume there is no issues with RMAN backup and restore having similar DBID for two databases running on same server?
    Regards
    Manoj Thakkan

  • How to set the default value of a database column to NULL

    Hello,
    I want to set the default value of a column (VARCHAR2(20) to NULL, nut I cannot figure out to do this. I tried the following editing the offline table with JDeveloper:
    Default Value : <empty> -> On database NULL
    Default Value: '' -> On database ''
    When I create a new column, there is no default value on the database side and when I open the tabe properties in the database navigator I can see that the default value is (null). This is what I want to see in the other column as well. I don't know why sometimes a default value is visible on the database side (when generating form offline tables to database tables) and sometimes not.
    Perhaps sombody can bring some light in this issue.
    Thanks Thomas

    Hello Shay,
    I have the impression that you don't understand my problem. So here step by step:
    1. Create a offline Table TEST with one column TEST: VARCHAR2(20). nullable=true, no default value.
    2. Generate the table to the database
    3. When you look at the table properties (columns) with the database navigator the following information is displayed (sorry for the formatting):
    Column Name | Data Type | Nullable | Data Default | COLUMN ID| Primary Key | COMMENTS
    TEST | VARCHAR2(20 BYTE | Yes | (null) | 1 | (null) | (null)
    4. Now set the default value for the column TEST in the offline table for example to 'Test'
    5. Generate the table to the database.
    6. When you have a look at the database table, the default value is now 'Test' (as expected)
    7. Now remove the default value of the column TEST in the offline table
    8. Generate the table to the database
    9. When you have a look at the database table, the default value is now NULL (in uppercase letters without parenthesis)
    And this is where the problem starts!
    When you generate the table again with the options "Alter/Manual Reconcile" the default value of the column test is considered to be different! But in fact it should'nt be different because nothing has been changed.
    Best regards Thomas
    Edited by: thmayr on May 28, 2009 9:05 AM
    Edited by: thmayr on May 28, 2009 9:31 AM

  • Kodo-ds.xml: how to use for two database in same app server?

    hi,
    i meet a problem: i have two applications in the same app server(one app
    use one database.). BUT, only one kodo-ds.xml can configure the
    PersistenceManagerFactory with jndi name. When i figure the two jidi name
    for two "<tx-connection-factoy>" in the root element
    "<connection-factories>" in the kodo.ds.xml. That's unavailable!
    eg:
    <connection-factories>
    <tx-connection-factoy>
    <!-- specify the the first database connection properties with jndi name A
    -->
    </tx-connection-factoy>
    <tx-connection-factoy>
    <!-- specify the the SECOND database connection properties with jndi name
    B -->
    </tx-connection-factoy>
    </connection-factories>
    THAT'S MY CONFIGURATION. UNAVALIABLE NOW.... Who can help me solve this
    problem?
    thx!

    You should deploy multiple kodo-ds.xml files (i.e. kodo-ds-oracle.xml).
    Kidwish wrote:
    hi,
    i meet a problem: i have two applications in the same app server(one app
    use one database.). BUT, only one kodo-ds.xml can configure the
    PersistenceManagerFactory with jndi name. When i figure the two jidi name
    for two "<tx-connection-factoy>" in the root element
    "<connection-factories>" in the kodo.ds.xml. That's unavailable!
    eg:
    <connection-factories>
    <tx-connection-factoy>
    <!-- specify the the first database connection properties with jndi name A
    -->
    </tx-connection-factoy>
    <tx-connection-factoy>
    <!-- specify the the SECOND database connection properties with jndi name
    B -->
    </tx-connection-factoy>
    </connection-factories>
    THAT'S MY CONFIGURATION. UNAVALIABLE NOW.... Who can help me solve this
    problem?
    thx!
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com

  • Is there any tools can check for existed database ?

    hi all, is there any tools that can check for that existed database after inserted a database to Ms access??

    Then you'll open a connection and then do a Select from table to retrieve information. (and close afterwards)
    /Y 
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • Import format for two amount columns in different currencies

    Hello,
    I am working on FDM 11.1.1.3 and will be getting the trial balance containing amounts in two currencies (both local and USD). I need to load data in both the currencies. The extract has two columns for the amount rather than having two different rows for different currencies. Any ideas how to define this format and how to load data. We are not using the translation logic and hence the amounts in both currencies are required.
    Thanks for your help in advance.

    Hi Tony,
    Thanks a lot for the input. Any idea, how should I go about doing this else if you have any documentation, let me know. Also, what are the cons of doing it this way over requesting the customer to get the file with amounts in different rows than in different columns

  • Do I need to do authority check for Logical Database?

    Hi,
    Just to check, do I need to code authority check into a Logical Database or Logical Database will do the check by itself without me coding?
    This is because I have a user which does not have rights to infotypes 2000 and above and the logical database still show the user data which belongs to the infotypes 2000 and above.
    If I have to code it, how do I go about to do the coding of authority check?
    Thanks in advance.  Will reward points for good solutions.
    Lawrence

    Let me give an example
    Tables : pernr.
    infotypes: 0000, 0001, 2001.
    Get pernr.
    Do you mean that the 'get pernr' command will not return any data for users who do not have authorisation for infotype 2001?

  • SQL command for two databases

    I am attempting to write a SQL command for a Crystal report that links tables from two different databases, both of them Progress databases.I keep getting syntax errors that the table from the other db (meaning not the one I opened in DB Expert) can't be found. If someone has experience with Progress or otherwise has any ideas it would be greatly appreciated.

    I'm not familiar with Progress, but does it have something like MS SQL's OPENQUERY using Linked Servers (which allows you to query a different DB server from the one you're connected to)?  If not, you'll probably have to use two different SQL Commands to base the report on, then use Crystal to link the returned data sets.  (I'm assuming "a different database" means "a different database server", not a different database on the same server instance...)
    HTH,
    Carl

  • Customizing the code inspector with check for two executable statements in same line

    Hi Everyone,
    I have a reuirement to customize the code inspector.I need to create a check 'Two executable statements should not be in the same line'.
    While doing so i am facing one problem as in internal table it is capturing the report as word by word with same row number nd different line number.
    If anyone have worked on this before then help me out.
    I am using CL_CI_TEST_SCAN as superclass and making the changes in the run method.
    Regards,
    Khushboo

    In the source code you will have this in comment right, use the "#EC ENHOK.

  • Check for two conditions

    Major brain-fart here.... been doing a bunch of .net stuff
    lately and am forgetting syntax...
    If I want to check 2 conditions, how do I string them
    together? This obviously doesn't work...
    if (my_label1.text == ('Aetna Open Access 1.0')) &
    (my_label2.text >= Number(1) {
    my_label3.text = true;
    thanks!

    Except it's && for logical and - not &.
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Stored Procedure for two databases

    Hi,
    How we will get the response from the stored procedure i.e in which way?
    Somebody can help me please.....
    Thanks & Regards
    Radhika

    Hi Radhika
    Refer this link ..it will help you
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/jdbcTOJDBC&
    Best Regards,
    Srikanth     
    Reward the useful answers and you will get one point yourself

  • Query to check for DB created

    Hi all,
    How can I query in DB to check for all database created? As well as the size of each DB?
    Thanks.

    Hi,
    mitchel-->by quering v$database will show u the creation data of database but what if the database was migrated or rebuild?? the date will change..So i do not trust this.
    How can I query in DB to check for all database created? As well as the size of each DB?How can u query from a database and know when all the databases on the server were created?And how can u know the sizes of all the database bases from one database?I think we cannot do that
    From query u can find out the output of the same database by cheacking system tablespace creation date with the below query
    select fn.fnnam
    , fe.FECRC_tim
    from x$kccfe fe
    , x$kccfn fn
    where fe.fedup!=0
    and fe.indx+1=fn.fnfno
    and fn.fnnam is not null
    and fn.fnnam = '&Filename'
    And for the database size query dba_data_files and v$logfile.
    Regards
    Kaunain
    Edited by: Kaunain Ahmed on Aug 25, 2008 1:55 PM

  • Views to check the catalog database name from target database.

    Hi,
    Please help me to find view to check the catalog database name which is connected to my target database because I am new to the current environment where I am working now and the previous DBA have done the set up having 2 catalog database. I want view to check from target database, which can show the catalog database name to which it is connected to.
    We can check the catalog database name from the following ways but I want views to check it from target database.
    1.TNSnames.ora
    2.Any backup script connecting to catalog database.
    3.From catalog database we can use rc_database view to check the databases registered with the catalog database.

    Please help me to find view to check the catalog database name which is connected to my target databaseYou can check for any RMAN backup jobs that been scheduled on the server.
    In the scheduled script check rman command.
    You can then identify the database alias (of the catalog db) that is used in the rman backup script.
    Once you have found the database alias, check for the database alias entry in tnsnames.ora file present in your target database server.
    Once the entry is found, you can find the IP address and catalog db name from the tns entry.
    Edited by: st. osh on Nov 22, 2012 11:38 PM

  • How to check for outstanding service instance creation requests

    Greetings,
    In preparation to upgrade my OEM Cloud Control from 12.1.0.1 to 12.1.0.3 I am reading the OEM Cloud Control Upgrade Guide. Step 2b in Chapter 3 (Getting Started) says to check for outstanding database service instance creation requests as follows: In Cloud Control from the Enterprise menu, select Infrastructure Cloud. I do not see an Infrastructure Cloud option under the Enterprise dropdown. I don't understand why not. If anyone can shed some light on this I would appreciate it.
    Thank you.
    Bill Wagman

    Step 2b applies to sites with DBaaS (database as a service) feature enabled. If you have not set up DBaaS, it is not necessary to check on database requests referred to in the step.
    Doc on DBaaS:
    http://docs.oracle.com/cd/E24628_01/doc.121/e28814/cloud_db_using.htm#CHDFDDBC
    By the way, it is recommended that you check out the following notes on upgrade:
      1568143.1 - EM 12c R3: Checklist for Upgrading Enterprise Manager Cloud Control from Version 12.1.0.x to 12.1.0.3
      1569883.1 - EM 12c R3: Checklist for Upgrading Management Agents Version 12.1.0.x to 12.1.0.3

Maybe you are looking for

  • How to use database cursor in ABAP

    Hi all, I want to establish a connexion with another database system (Oracle) from SAP. Then i want to execute a cursor which is in a SQL package. The connexion is done sucssefuly but i don't know how to execute the cursor from SAP. The SQL package's

  • DVD-burner problems using 925X NEO Platinum

    Hello, I've experienced a lot of problems trying to burn DVD's lately. Both of the latest DVD burners I've used only burn DVD's at 1.5x speed. I read a post on this forum about a guy who experienced exactly the same and he was adviced to switch the D

  • Getting started with NDWS7.3 ,webdynpro JAVA

    Someone please help me how to create normal application where we have 2 ratio button * single * multiple If we select Single it will show : 1 Start Date 2 End Date If we select Multiple: 1 Start date 2 End Date 3 Drop down menu to add file to upload.

  • ITunes Setup Assistant Error!

    Running Windows 7 and Nero 9 and receiving this error when starting newest version of iTunes. "Warning - The registry settings used by the iTunes drivers for importing and burning CDs and DVDs are missing. This can happen as a result of installing ot

  • Resource Name, IVI Logical Name, Driver session on MAX

    Inside MAX, we can set Device Name, Logical Names, and Driver Sessions. Can I setup those on LabWindows or LabView? or you have C# wrapper to do this?