How to design a listbox or tree control related to the database

Now i have a problem to design a listbox or tree control, it is designed to connect to the database, if the related element in database changed, the element in listbox or tree control should also change. i have managed to read the element in database, but i cannot input it to the listbox or tree control, since it has no input terminal that i can only use the Labeling tool and enter text into it.
is there any advise on it, maybe i can use another control rather than listbox or tree control. any suggestion would be appreciate.
Thank you
XuY

Hi Xuy,
      On the front-panel, right-click on the text-ring control and select: Create\Property Node.
Then, on the diagram, right-click on the property-node and select "Strings[]".
The "strings[]" property is the array of strings available in the control - and you can change it.
Cheers!
Message Edited by tbd on 04-05-2007 11:18 PM
"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Attachments:
RingStrings.jpg ‏6 KB

Similar Messages

  • How to create  a procedure to send a mail if the Database is down?

    Hi,
    I have created the below procedure to send a mail if the count is less than 1300. It scheduled daily @ 15 30 hrs. Its fine.
    CREATE OR REPLACE procedure SCOTT.hrsmail
    is
    v_count number;
    begin
    Select count(*) into v_count from emp;
    if v_count < 1300
    then
    UTL_MAIL.send(sender => '[email protected]',
    recipients => '[email protected]',
    cc => '[email protected]',
    bcc => '[email protected]',
    subject => 'Testing the UTL_MAIL Package',
    message => 'If you get this, UTL_MAIL package
    else
    null; --what you want to do here
    end if ;
    end;
    Sometime the Database is down, so the job is not running.
    How to create a procedure to send a mail if the database is down?
    Pls help me. Its highly appreciated.
    Thanks
    Nihar

    nihar wrote:
    How to create a procedure to send a mail if the database is down?And what if the database is up, but the network down? Or the database up and mail server down? Or mail server undergoing maintenance?
    There are loads of "+What if's+" - and in that respect, playing "+What if database is down..+" in this case does not make any sense. You do not use the database to monitor its own up/down status. You do not rely just on SMTP as notification protocol that the database is down.
    The correct approach would be using something like SNMP as the monitoring protocol. A monitoring system that can process SNMP and perform some basic root cause analysis (e.g. network to the database server down, database server status unknown). And this system supporting notification methods like SMTP, SMS and so on.

  • How to bind JtextFields in Swing to Table fields in the database

    Can some one give the code of how to bind JtextFields in Swing to Table fields in the database
    Am really new to java programming and have interest in learning

    The standard JDK doesn't do this for you. If you search on Google, you may find some 3rd party packages that will do this.
    You need to create your own form add execute the appropriate SQL yourself. Read the tutorial on [url http://java.sun.com/docs/books/tutorial/]JDBC Database Access to get started.

  • How to open child node in Tree control?

    Hi All,
    I am using arrayCollection in my tree control.
    I want to open one child node based on name of that node.
    How to open that chid node?
    I tried tree.OpenItems and ExpandItem methods. IT is not working. Any idea how to do it?

    write this statement
    TreeObject.expandItem("the branch",true)
    But make sure you dont call this statement right after you set the dataProvider for the tree object. Instead wait for a second or two and then call this statement. This delay is allow the tree object ot call it validate functions.
    Let me know if it helps

  • How to change font size of tree control content programati​cally

    Hi,
    Can I programtically change the font size of  parent item and child item in the tree control.
    In my application the parent and child items are changing  programatically. ie the content of tree control is not constant it is  dynamic.
    I am using labview 8.6
    Thank You
    Assumptha.
    Solved!
    Go to Solution.

    That does work...  
    To keep this line of instruction under the same title, how do you change ALL the text?  not just the active cell?  i've tried double clicking, then editing text properties using the font dialog (ctrl + 0) on a non-running vi, then saved it, and hit run.  but it always reverts to some preset font properties values, and i don't know where they're being set....???
    Any help would be greatly apprec! 

  • How do you clear out a tree control?

    I am editing items in a tree control, when the editing is complete, I re-build the tree to represent what I have after the edit.  My process of deleting the items one-by-one has worked fine until the tree scrolled off the top, then, when I select the top-left item and delete everything under it, I miss the ones that have scrolled off the top.
    What's the method/property I should use to clean out a tree in one operation?  (before rebuilding)
       ...Dan

      Tray Drool!
    Originally I had, "How do you clear out a tree?".  That's why I added "control".

  • Tree Control ActiveX and the Runtime - help...

    We've build a BridgeView application that lets you select past datasets
    using a tree control. It works fine when the BV development system is
    installed, but when we remove it and replace it with a Run-time
    version, the control is no longer visible or active....
    TIA,
    Thor Johnson
    [email protected]
    www.advance-it.com
    Sent via Deja.com http://www.deja.com/
    Share what you know. Learn what you don't.

    Thanks for your answer. Unfortunately I am stuck to Labview 7.1 for other reasons and the defer front panel updates only improves my numbers by a 30% which is not enough as already mentioned by the post you refer to. Sadly enough the 'add multiple items' method is not available for the same string control in Labview 7.1. Maybe I should investigate further in the Active X area...
    Christophe

  • Database Control always gets "The database status is currently unavailable"

    I have two 10.1.0 databases installed on a Windows XP machine. Instance orcl always gets this message. Instance orcltwo does not. If I shut down orcl and then start the web database control page I can select the startup button and it starts up the database and then goes back to the pages that says that the database is not available. The console for that database is running with no errors that I can find. The DBSNMP account is not locked. The SYSMAN account is not locked. There are no errors in any log file that I can find. What am I doing wrong here. The orcltwo instance has no problems at all.

    Just to share this experience with everyone. This happened with Grid Control (not sure if it applies to Database Control).
    All the targets in EM (except the Agent) showed Down or Unavailable for two weeks. This is how I checked it.
    Note that if the Agent is not able to upload Metrics to the repository due to one reason or the other, you will not be able to see the current status.
    Assuming your ORACLE_HOME is different from your AGENT_HOME. Check the emagent trace file in the Agent home.
    e.g with AGENT home as D:\oracle\agent\
    check D:\oracle\agent\sysman\log\emagent.trc to see the latest error message.
    Then check the upload directory to see if there are xml files waiting to be uploaded
    e.g D:\oracle\agent\sysman\emd\upload
    This directory should be clear of .xml file if your metrics loading is working.
    From the Agents Monitoring screen in Enterprice Manager (Management System -> Agent), under the Upload session where there is Upload Metric Data button, check for "Last Successful Upload" and "Data Pending Upload " and any error messages. If the Metric upload is not working, the Data Pending uplaod will be more than 0.00MB and the error message link will show you the xml file it is unable to load. Which you will find in my example D:\oracle\agent\sysman\emd\upload
    I my example upload file B0002332.xml is the one I found on the error url and when I viewed it in the directory, the structure is different from others. This inability to load it caused all other upload files to be queuing. There was a line in it as
         <METRIC_GUID><![CDATA[€=3F6739EE03C21CE7CA5E32FD9185]]></METRIC_GUID>
    Looking at the structure of other files, I took a guess (not the best , this is a test EM) and changed it to
         <METRIC_GUID>80C23F6739EE03C21CE7CA5E32FD9185</METRIC_GUID>
    Then all the two weeks 32MB of xml files loaded automatically within seconds. Logoff EM and Login, everything showed the correct status.
    Hope this helps.

  • How to design  databse for binary tree

    kindly help in desiging databse for binary tree and also to retrive data from database.

    Since you're not asking about Java, you'll probably get more responses by posting this in a database forum.

  • How to delete images from folder which are not in the database

    I am created windows form
    i wont to delete images from the folder where i have stored images but i only want to delete those images which are not in the data base.
    i don't know how it is possible . i have written some code
    private void button1_Click(object sender, EventArgs e)
    string connectionString = "Data Source";
    conn = new SqlConnection(connectionString);
    DataTable dt = new DataTable();
    cmd.Connection = conn;
    cmd.CommandText = "select * from tbl_pro";
    conn.Open();
    SqlDataAdapter da = new SqlDataAdapter(cmd);
    da.Fill(dt);
    int count = Convert.ToInt32( dt.Rows.Count);
    string[] image1 = new string[count];
    for (int i = 0; i < count; i++)
    image1[i] = dt.Rows[i]["Image1"].ToString();
    string[] image2 = new string[count];
    for (int i = 0; i < count; i++)
    image2[i] = dt.Rows[i]["Image2"].ToString();
    var arr = image1.Union(image2).ToArray();
    string[] arrays;
    String dirPath = "G:\\Proj\\";
    arrays = Directory.GetFiles(dirPath, "*", SearchOption.AllDirectories).Select(x => Path.GetFileName(x)).ToArray();
    int b= arrays.Count();
    for (int j = 1; j <= b; j++)
    if (arrays[j].ToString() != arr[j].ToString())
    var del = arrays[j].ToString();
    else
    foreach (var value in del) // ERROR DEL IS NOT IN THE CURRENT CONTEXT
    string filePath = "G:\\Projects\\Images\\"+value;
    File.Delete(filePath);
    here error coming "DEL IS NOT IN THE CURRENT CONTEXT"
    I have to change anything .Will It work alright?
    pls help me
    Sms

    Hi Fresherss,
    Your del is Local Variable, it can't be accessed out of the if statement. you need to declare it as global variable like below. And if you want to collect the string, you could use the List to collect, not a string.  the string will be split to chars
    one by one.
    List<string> del=new List<string>();
    for (int j = 1; j <= b; j++)
    if (arrays[j].ToString() != arr[j].ToString())
    del.Add(arrays[j].ToString());
    else
    foreach (var value in del)
    string filePath = "G:\\Projects\\Images\\" + value;
    File.Delete(filePath);
    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 Numric value from a Char field in the database?

    I have the following values in a column in Database.
    COMP
    GRADE
    CANC
    CANCELLED
    Comp
    Complete
    INCOMP
    NC
    NS
    85%
    79
    88 .... etc....
    I have to take the value from this field if it is a Numeric other wise I have to ignore that value.
    Please let me know how to handle this?
    Thanks,
    Lakshmi

    Thanks for the inputs.
    Here I want to take the value if it is numeric else I
    will ignore that record.
    Please let me know how to validate the data for a
    Numeric value.
    I don't want to stop my program by throwing these
    exceptions.The sample code catches the exception. At that point you can do whatever you want (set a boolean to say the value is not a number, etc.) - the program does not stop.

  • Remove the current control file when the database is running on linux or un

    Question From Oracler:
    下面这个例子中,假如controlfile被删除掉了,instance还没有关闭,可以通过lsof找出controlfile的file descriptors,再通过dd把文件恢复过来...
    我觉得这样dd出来的控制文件是没有办法直接启动这个数据库的,因为CKPT每3S一次,你dd恢复出来的控制文件SCN肯定和datafile不一样,比datafile小,... 要是recover会提示控制文件太久,不知道我理解正不正确啊?
    http://www.oracledatabase12g.com/archives/unix-linux%e4%b8%8b%e5%88%a0%e9%99%a4oracle%e6%8e%a7%e5%88%b6%e6%96%87%e4%bb%b6controlfile%e4%b8%ba%e4%bb%80%e4%b9%88%e5%ae%9e%e4%be%8binstance%e6%b2%a1%e6%9c%89%e7%ab%8b%e5%8d%b3%e5%a5%94%e6%ba%83.html
    dd恢复的控制文件 怎么会比打他file、
    怎么会比datafile的scn 小呢
    一旦关库,那么fd是不是就消失了,没有办法dd了, 那么造成scn不相同的原因是dd过程中scn的变化么?
    还请大致谈一下造成scn更新的必要条件。

    有网友提问,若控制文件是 create controlfile 重建得来的 又会如何? 这里我们可以看一下:
    我们来看一下:
    SQL> alter system switch logfile;
    System altered.
    SQL> select distinct checkpoint_change# from v$datafile_header;
    CHECKPOINT_CHANGE#
    15169797
    SQL> alter system checkpoint;
    System altered.
    SQL> select distinct checkpoint_change# from v$datafile_header;
    CHECKPOINT_CHANGE#
    15169802 =>E7783A
    15169802 =>E7783A 最近的一次FULL CHECKPOINT的SCN
    SQL> select name from v$tablespace;
    NAME
    SYSTEM
    UNDOTBS1
    SYSAUX
    USERS
    EXAMPLE
    TEMP
    SQL> alter tablespace SYSTEM begin backup;
    Tablespace altered.
    SQL> alter tablespace UNDOTBS1 begin backup;
    Tablespace altered.
    SQL> alter tablespace SYSAUX begin backup;
    Tablespace altered.
    SQL> alter tablespace USERS begin backup;
    Tablespace altered.
    SQL> alter tablespace EXAMPLE begin backup;
    Tablespace altered.
    SQL> alter tablespace SYSTEM end backup;
    Tablespace altered.
    SQL> alter tablespace UNDOTBS1 end backup;
    Tablespace altered.
    SQL> alter tablespace SYSAUX end backup;
    Tablespace altered.
    SQL> alter tablespace USERS end backup;
    Tablespace altered.
    SQL> alter tablespace EXAMPLE end backup;
    Tablespace altered.
    begin /end backup 会引发FILE CHECKPOINT ,造成datafile_header的 checkpoint_change# 更新
    SQL> select distinct checkpoint_change# from v$datafile_header;
    CHECKPOINT_CHANGE#
    15169814
    15169827
    15169842
    15169821
    15169835
    15169814 =>E77916 是最小的一个 datafile header checkpoint_change#
    SQL> oradebug setmypid;
    Statement processed.
    SQL> oradebug dump controlf 3;
    Statement processed.
    SQL> oradebug tracefile_name;
    但是此时去dump controlf 可以发现 控制文件中的database checkpint 仍是 E7783A 15169802 即上一次FULL CHECKPOINT的 SCN
    DATABASE ENTRY
    (size = 316, compat size = 316, section max = 1, section in-use = 1,
    last-recid= 0, old-recno = 0, last-recno = 0)
    (extent = 1, blkno = 1, numrecs = 1)
    03/09/2012 23:04:33
    DB Name "G10R21"
    Database flags = 0x00404001 0x00001000
    Controlfile Creation Timestamp 03/09/2012 23:04:33
    Incmplt recovery scn: 0x0000.00000000
    Resetlogs scn: 0x0000.00e7784f Resetlogs Timestamp 03/09/2012 23:11:46
    Prior resetlogs scn: 0x0000.00e77780 Prior resetlogs Timestamp 03/09/2012 22:57:44
    Redo Version: compatible=0xa200100
    #Data files = 16, #Online files = 16
    Database checkpoint: Thread=1 scn: 0x0000.00e7790a ==>15169802
    Threads: #Enabled=1, #Open=1, Head=1, Tail=1
    REDO THREAD RECORDS
    (size = 256, compat size = 256, section max = 8, section in-use = 1,
    last-recid= 0, old-recno = 0, last-recno = 0)
    (extent = 1, blkno = 9, numrecs = 8)
    THREAD #1 - status:0xf thread links forward:0 back:0
    #logs:3 first:1 last:3 current:2 last used seq#:0x2
    enabled at scn: 0x0000.00e7784f 03/09/2012 23:11:46
    disabled at scn: 0x0000.00000000 01/01/1988 00:00:00
    opened at 03/09/2012 23:11:46 by instance G10R21
    Checkpointed at scn: 0x0000.00e7790a 03/09/2012 23:12:12
    thread:1 rba:(0x2.3.10)
    SQL> alter database backup controlfile to trace;
    Database altered.
    SQL> oradebug setmypid;
    Statement processed.
    SQL> oradebug tracefile_name;
    SQL> shutdown abort;
    ORACLE instance shut down.
    [oracle@vrh8 ~]$ rm /s01/recreate.ctl
    我们以NORESETLOGS重建控制文件:
    SQL> startup nomount;
    ORACLE instance started.
    Total System Global Area 620756992 bytes
    Fixed Size 2022760 bytes
    Variable Size 234881688 bytes
    Database Buffers 377487360 bytes
    Redo Buffers 6365184 bytes
    SQL> show parameter control
    NAME TYPE VALUE
    control_file_record_keep_time integer 7
    control_files string /s01/recreate.ctl
    SQL> CREATE CONTROLFILE REUSE DATABASE "G10R21" NORESETLOGS ARCHIVELOG
    2 MAXLOGFILES 16
    3 MAXLOGMEMBERS 3
    4 MAXDATAFILES 100
    5 MAXINSTANCES 8
    6 MAXLOGHISTORY 2921
    7 LOGFILE
    8 GROUP 1 (
    9 '/s01/oradata/G10R21/onlinelog/o1_mf_1_7ch812dg_.log',
    10 '/s01/flash_recovery_area/G10R21/onlinelog/o1_mf_1_7ch813h5_.log'
    11 ) SIZE 50M,
    12 GROUP 2 (
    13 '/s01/oradata/G10R21/onlinelog/o1_mf_2_7ch8144q_.log',
    14 '/s01/flash_recovery_area/G10R21/onlinelog/o1_mf_2_7ch815cj_.log'
    15 ) SIZE 50M,
    16 GROUP 3 (
    17 '/s01/oradata/G10R21/onlinelog/o1_mf_3_7ch816g2_.log',
    18 '/s01/flash_recovery_area/G10R21/onlinelog/o1_mf_3_7ch817gp_.log'
    19 ) SIZE 50M
    20 -- STANDBY LOGFILE
    DATAFILE
    21 22 '/s01/oradata/G10R21/datafile/o1_mf_system_7ch8004t_.dbf',
    23 '/s01/oradata/G10R21/datafile/o1_mf_undotbs1_7ch80081_.dbf',
    24 '/s01/oradata/G10R21/datafile/o1_mf_sysaux_7ch8004x_.dbf',
    25 '/s01/oradata/G10R21/datafile/o1_mf_users_7ch80085_.dbf',
    26 '/s01/oradata/G10R21/datafile/o1_mf_example_7ch81ch3_.dbf',
    27 '/s01/oradata/G10R21/datafile/o1_mf_users_7gvd5pwh_.dbf',
    28 '/s01/oradata/G10R21/datafile/o1_mf_users_7h6t6fdt_.dbf',
    29 '/s01/oradata/G10R21/datafile/o1_mf_users_7h6t6nxy_.dbf',
    30 '/s01/oradata/G10R21/datafile/o1_mf_users_7h6t6qc2_.dbf',
    31 '/s01/oradata/G10R21/datafile/o1_mf_users_7h6t6stt_.dbf',
    32 '/s01/oradata/G10R21/datafile/o1_mf_users_7h6t6w5w_.dbf',
    33 '/s01/oradata/G10R21/datafile/o1_mf_users_7h6t6yo0_.dbf',
    34 '/s01/oradata/G10R21/datafile/o1_mf_users_7h6t717x_.dbf',
    35 '/s01/oradata/G10R21/datafile/o1_mf_undotbs1_7h6ttkkx_.dbf',
    36 '/s01/oradata/G10R21/datafile/o1_mf_undotbs1_7h6ttpn1_.dbf',
    37 '/s01/oradata/G10R21/datafile/o1_mf_undotbs1_7h6ttsbd_.dbf'
    38 CHARACTER SET AL32UTF8;
    Control file created.
    SQL> oradebug setmypid;
    Statement processed.
    SQL> oradebug dump controlf 3;
    Statement processed.
    DATABASE ENTRY
    (size = 316, compat size = 316, section max = 1, section in-use = 1,
    last-recid= 0, old-recno = 0, last-recno = 0)
    (extent = 1, blkno = 1, numrecs = 1)
    03/09/2012 23:16:57
    DB Name "G10R21"
    Database flags = 0x00400103 0x00001000
    Controlfile Creation Timestamp 03/09/2012 23:16:58
    Incmplt recovery scn: 0x0000.00000000
    Resetlogs scn: 0x0000.00e7784f Resetlogs Timestamp 03/09/2012 23:11:46
    Prior resetlogs scn: 0x0000.00e77780 Prior resetlogs Timestamp 03/09/2012 22:57:44
    Redo Version: compatible=0xa200100
    #Data files = 16, #Online files = 16
    Database checkpoint: Thread=1 scn: 0x0000.00e77902 15169794
    Threads: #Enabled=1, #Open=1, Head=1, Tail=1
    Database checkpoint: 变成了 00e77902 =》 15169794,比上次FULL CHECKPOINT的15169802 还要小
    这个
    00e77902 =》 15169794从哪里来?
    REDO THREAD RECORDS
    (size = 256, compat size = 256, section max = 8, section in-use = 1,
    last-recid= 0, old-recno = 0, last-recno = 0)
    (extent = 1, blkno = 9, numrecs = 8)
    THREAD #1 - status:0x7 thread links forward:0 back:0
    #logs:3 first:1 last:3 current:2 last used seq#:0x2
    enabled at scn: 0x0000.00e7784f 03/09/2012 23:11:46
    disabled at scn: 0x0000.00000000 01/01/1988 00:00:00
    opened at 01/01/1988 00:00:00 by instance
    Checkpointed at scn: 0x0000.00e77902 03/09/2012 23:11:54
    thread:1 rba:(0x2.2.0)
    LOG FILE RECORDS
    (size = 72, compat size = 72, section max = 16, section in-use = 3,
    last-recid= 0, old-recno = 0, last-recno = 0)
    (extent = 1, blkno = 10, numrecs = 16)
    LOG FILE #1:
    (name #3) /s01/oradata/G10R21/onlinelog/o1_mf_1_7ch812dg_.log
    (name #4) /s01/flash_recovery_area/G10R21/onlinelog/o1_mf_1_7ch813h5_.log
    Thread 1 redo log links: forward: 2 backward: 0
    siz: 0x19000 seq: 0x00000001 hws: 0x4 bsz: 512 nab: 0xb6 flg: 0x0 dup: 2
    Archive links: fwrd: 2 back: 0 Prev scn: 0x0000.00000000
    Low scn: 0x0000.00e7784f 03/09/2012 23:11:46
    Next scn: 0x0000.00e77902 03/09/2012 23:11:54
    LOG FILE #2:
    (name #1) /s01/oradata/G10R21/onlinelog/o1_mf_2_7ch8144q_.log
    (name #2) /s01/flash_recovery_area/G10R21/onlinelog/o1_mf_2_7ch815cj_.log
    Thread 1 redo log links: forward: 3 backward: 1
    siz: 0x19000 seq: 0x00000002 hws: 0x1 bsz: 512 nab: 0xffffffff flg: 0xa dup: 2
    Archive links: fwrd: 0 back: 1 Prev scn: 0x0000.00e7784f
    Low scn: 0x0000.00e77902 03/09/2012 23:11:54
    Next scn: 0xffff.ffffffff 01/01/1988 00:00:00
    LOG FILE #3:
    (name #5) /s01/oradata/G10R21/onlinelog/o1_mf_3_7ch816g2_.log
    (name #6) /s01/flash_recovery_area/G10R21/onlinelog/o1_mf_3_7ch817gp_.log
    Thread 1 redo log links: forward: 0 backward: 2
    siz: 0x19000 seq: 0x00000000 hws: 0x2 bsz: 512 nab: 0x2 flg: 0x1 dup: 2
    Archive links: fwrd: 0 back: 0 Prev scn: 0x0000.00000000
    Low scn: 0x0000.00000000 01/01/1988 00:00:00
    Next scn: 0x0000.00000000 01/01/1988 00:00:00
    原来这个
    00e77902 =》 15169794 来源于 current online redo logfile中最小的LOW SCN
    DATA FILE RECORDS
    (size = 428, compat size = 428, section max = 100, section in-use = 19,
    last-recid= 0, old-recno = 0, last-recno = 0)
    (extent = 1, blkno = 11, numrecs = 100)
    DATA FILE #1:
    (name #22) /s01/oradata/G10R21/datafile/o1_mf_system_7ch8004t_.dbf
    creation size=0 block size=8192 status=0x12 head=22 tail=22 dup=1
    tablespace 0, index=1 krfil=1 prev_file=0
    unrecoverable scn: 0x0000.00000000 01/01/1988 00:00:00
    Checkpoint cnt:2314 scn: 0x0000.00e77916 03/09/2012 23:12:46
    Stop scn: 0xffff.ffffffff 03/09/2012 23:16:58
    Creation Checkpointed at scn: 0x0000.00000008 10/22/2005 21:44:31
    thread:0 rba:(0x0.0.0)
    DATAFILE 1 的checkpoint scn最小为 00e77916 =》15169814
    SQL> recover database using backup controlfile;
    ORA-00279: change 15169814 generated at 03/09/2012 23:12:46 needed for thread 1
    ORA-00289: suggestion :
    /s01/flash_recovery_area/G10R21/archivelog/2012_03_09/o1_mf_1_2_%u_.arc
    ORA-00280: change 15169814 for thread 1 is in sequence #2
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    ORA-00279: change 15169814 generated at 03/09/2012 23:12:46 needed for thread 1
    可以看到 recover database using backup controlfile 的起点是 15169814 即 最小的一个 datafile header 的CHECKPOINT CHANGE#,
    也就是说 丢失控制文件 并(create controlfile)重建后的recover 从 最小的datafile header CHECKPOINT_CHANGE#开始 ,直到NEXT SCN 无穷大的 current logfile的 end 为止!
    我们在看一下 RESETLOGS的情况:
    SQL>
    SQL> CREATE CONTROLFILE REUSE DATABASE "G10R21" RESETLOGS ARCHIVELOG
    MAXLOGFILES 16
    2 3 MAXLOGMEMBERS 3
    4 MAXDATAFILES 100
    5 MAXINSTANCES 8
    6 MAXLOGHISTORY 2921
    7 LOGFILE
    8 GROUP 1 (
    9 '/s01/oradata/G10R21/onlinelog/o1_mf_1_7ch812dg_.log',
    10 '/s01/flash_recovery_area/G10R21/onlinelog/o1_mf_1_7ch813h5_.log'
    11 ) SIZE 50M,
    12 GROUP 2 (
    13 '/s01/oradata/G10R21/onlinelog/o1_mf_2_7ch8144q_.log',
    14 '/s01/flash_recovery_area/G10R21/onlinelog/o1_mf_2_7ch815cj_.log'
    15 ) SIZE 50M,
    16 GROUP 3 (
    17 '/s01/oradata/G10R21/onlinelog/o1_mf_3_7ch816g2_.log',
    18 '/s01/flash_recovery_area/G10R21/onlinelog/o1_mf_3_7ch817gp_.log'
    19 ) SIZE 50M
    20 -- STANDBY LOGFILE
    21 DATAFILE
    22 '/s01/oradata/G10R21/datafile/o1_mf_system_7ch8004t_.dbf',
    23 '/s01/oradata/G10R21/datafile/o1_mf_undotbs1_7ch80081_.dbf',
    '/s01/oradata/G10R21/datafile/o1_mf_sysaux_7ch8004x_.dbf',
    24 25 '/s01/oradata/G10R21/datafile/o1_mf_users_7ch80085_.dbf',
    26 '/s01/oradata/G10R21/datafile/o1_mf_example_7ch81ch3_.dbf',
    27 '/s01/oradata/G10R21/datafile/o1_mf_users_7gvd5pwh_.dbf',
    28 '/s01/oradata/G10R21/datafile/o1_mf_users_7h6t6fdt_.dbf',
    29 '/s01/oradata/G10R21/datafile/o1_mf_users_7h6t6nxy_.dbf',
    30 '/s01/oradata/G10R21/datafile/o1_mf_users_7h6t6qc2_.dbf',
    31 '/s01/oradata/G10R21/datafile/o1_mf_users_7h6t6stt_.dbf',
    32 '/s01/oradata/G10R21/datafile/o1_mf_users_7h6t6w5w_.dbf',
    33 '/s01/oradata/G10R21/datafile/o1_mf_users_7h6t6yo0_.dbf',
    34 '/s01/oradata/G10R21/datafile/o1_mf_users_7h6t717x_.dbf',
    35 '/s01/oradata/G10R21/datafile/o1_mf_undotbs1_7h6ttkkx_.dbf',
    36 '/s01/oradata/G10R21/datafile/o1_mf_undotbs1_7h6ttpn1_.dbf',
    37 '/s01/oradata/G10R21/datafile/o1_mf_undotbs1_7h6ttsbd_.dbf'
    CHARACTER SET AL32UTF8; 38
    Control file created.
    SQL> oradebug setmypid;
    Statement processed.
    SQL> oradebug dump controlf 3;
    Statement processed.
    SQL> oradebug tracefile_name;
    DATABASE ENTRY
    (size = 316, compat size = 316, section max = 1, section in-use = 1,
    last-recid= 0, old-recno = 0, last-recno = 0)
    (extent = 1, blkno = 1, numrecs = 1)
    03/09/2012 23:20:03
    DB Name "G10R21"
    Database flags = 0x00400147 0x00001000
    Controlfile Creation Timestamp 03/09/2012 23:20:03
    Incmplt recovery scn: 0x0000.00e77932
    Resetlogs scn: 0x0000.00e7784f Resetlogs Timestamp 03/09/2012 23:11:46
    Prior resetlogs scn: 0x0000.00e77780 Prior resetlogs Timestamp 03/09/2012 22:57:44
    Redo Version: compatible=0xa200100
    #Data files = 16, #Online files = 16
    Database checkpoint: Thread=0 scn: 0x0000.00000000
    Threads: #Enabled=1, #Open=0, Head=0, Tail=0
    REDO THREAD RECORDS
    (size = 256, compat size = 256, section max = 8, section in-use = 1,
    last-recid= 0, old-recno = 0, last-recno = 0)
    (extent = 1, blkno = 9, numrecs = 8)
    THREAD #1 - status:0x6 thread links forward:0 back:0
    #logs:3 first:1 last:3 current:3 last used seq#:0x0
    enabled at scn: 0x0000.00000000 01/01/1988 00:00:00
    disabled at scn: 0x0000.00000000 01/01/1988 00:00:00
    opened at 01/01/1988 00:00:00 by instance
    Checkpointed at scn: 0x0000.00000000
    thread:0 rba:(0x0.0.0)
    LOG FILE RECORDS
    (size = 72, compat size = 72, section max = 16, section in-use = 3,
    last-recid= 0, old-recno = 0, last-recno = 0)
    (extent = 1, blkno = 10, numrecs = 16)
    LOG FILE #1:
    (name #5) /s01/oradata/G10R21/onlinelog/o1_mf_1_7ch812dg_.log
    (name #6) /s01/flash_recovery_area/G10R21/onlinelog/o1_mf_1_7ch813h5_.log
    Thread 1 redo log links: forward: 2 backward: 0
    siz: 0x19000 seq: 0x00000000 hws: 0x0 bsz: 512 nab: 0x0 flg: 0x1 dup: 2
    Archive links: fwrd: 0 back: 0 Prev scn: 0x0000.00000000
    Low scn: 0x0000.00000000 01/01/1988 00:00:00
    Next scn: 0x0000.00000000 01/01/1988 00:00:00
    LOG FILE #2:
    (name #3) /s01/oradata/G10R21/onlinelog/o1_mf_2_7ch8144q_.log
    (name #4) /s01/flash_recovery_area/G10R21/onlinelog/o1_mf_2_7ch815cj_.log
    Thread 1 redo log links: forward: 3 backward: 1
    siz: 0x19000 seq: 0x00000000 hws: 0x0 bsz: 512 nab: 0x0 flg: 0x1 dup: 2
    Archive links: fwrd: 0 back: 0 Prev scn: 0x0000.00000000
    Low scn: 0x0000.00000000 01/01/1988 00:00:00
    Next scn: 0x0000.00000000 01/01/1988 00:00:00
    LOG FILE #3:
    (name #1) /s01/oradata/G10R21/onlinelog/o1_mf_3_7ch816g2_.log
    (name #2) /s01/flash_recovery_area/G10R21/onlinelog/o1_mf_3_7ch817gp_.log
    Thread 1 redo log links: forward: 0 backward: 2
    siz: 0x19000 seq: 0x00000000 hws: 0x0 bsz: 512 nab: 0x2 flg: 0xb dup: 2
    Archive links: fwrd: 0 back: 0 Prev scn: 0x0000.00000000
    Low scn: 0x0000.00000000 01/01/1988 00:00:00
    Next scn: 0x0000.00000000 01/01/1988 00:00:00
    虽然database checkpoint scn 等都是0 ,但是不影响 从 最小的datafile header checkpoint change 开始recover的 结论。
    SQL> recover database using backup controlfile;
    ORA-00279: change 15169814 generated at 03/09/2012 23:12:46 needed for thread 1
    ORA-00289: suggestion :
    /s01/flash_recovery_area/G10R21/archivelog/2012_03_09/o1_mf_1_2_%u_.arc
    ORA-00280: change 15169814 for thread 1 is in sequence #2
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}

  • My Wifi reception is now weak after removing mackeeper, how can I fix it and is it related to the removal of mackeeper?

    My macbook pro Wifi worked fine for a long while with the same router in place. I loaded mackeeper on my machine and had no problems until the license expired. I when through the steps to remove mackeeper, the Wifi went then from not working at all to working with very poor reception. All other devinesin house have no problem finding and connecing to our network. I can even see the neighbors networks on all devices.
    My macbook pro running mavrick can not see any network unless I'm rigth on top of the router.
    What can I do.

    Start up in Recovery mode. In the OS X Utilities screen, select Get Help Online. A clean copy of Safari will launch. No plugins, such as Flash, will be available. While in Recovery, you'll have no access to your saved bookmarks or passwords, so make a note of those before you begin, if they're needed for the test.
    Test. After testing, restart as usual and post the results.

  • How do you center a custom J Dialog relative to the J Frame that opened it?

    Hello everyone,
    I have a simple question, but I can't seem to get it working. I have a Dialog and I would like to center it relative to the Frame that opened it. I have found a couple methods:
    setLocation(int, int) and setLocationRelativeTo(Component)
    However, setLocationRelativeTo doesn't seem to center the dialog box correctly. It is being opened to a spot where I don't like. Do you guys have any suggestions or ideas?
    Thanks,
    Brian

    However, setLocationRelativeTo doesn't seem to center the dialog box correctly. It is being opened to a spot where I don't like.generally indicates you have this order
    dialog.setLocationRelativeTo(..)
    diaolg.setSize(..);//or pack();to work correctly, the order must be reversed i.e. must have a size PRIOR to setting relativity

  • Tree control - How to get the full path of selected Item in tree control

    I am Flex newbie. When the user clicks the particular item in
    the tree control I just wanted to get it name along with it's full
    parent.
    Here is my XML
    var dirXML:XML=<root basename="/home/tcegrid">
    <Directories>
    <Dir Name=".autosave" />
    <Dir Name=".emacs.d" />
    <Dir Name="AnsysDistributed">
    <Dir Name="opt"/>
    <Dir Name="root" />
    </Dir>
    <Dir Name="postgres"/>
    <Dir Name="FineTurbo"/>
    <Directories>
    </root>
    The above XML is data provider for Tree control. When the
    user clicks the Dir Name called opt. I wanted it absolute path in
    XML. say Directories.Dir.Dir.@Name is opt
    Can any one tell me how to get this?

    "Thamizhannal" <[email protected]> wrote in
    message
    news:gam9q8$4es$[email protected]..
    >I am Flex newbie. When the user clicks the particular
    item in the tree
    >control
    > I just wanted to get it name along with it's full
    parent.
    > Here is my XML
    > var dirXML:XML=<root basename="/home/tcegrid">
    > <Directories>
    > <Dir Name=".autosave" />
    > <Dir Name=".emacs.d" />
    > <Dir Name="AnsysDistributed">
    > <Dir Name="opt"/>
    > <Dir Name="root" />
    > </Dir>
    > <Dir Name="postgres"/>
    > <Dir Name="FineTurbo"/>
    > <Directories>
    > </root>
    >
    > The above XML is data provider for Tree control. When
    the user clicks the
    > Dir
    > Name called opt. I wanted it absolute path in XML. say
    > Directories.Dir.Dir.@Name is opt
    > Can any one tell me how to get this?
    loop until the parent() property of the XML node is empty.
    HTH;
    Amy

Maybe you are looking for

  • How do we proceed re: Heartbleed?

    I don't want to steal MadMacs0 thunder. So I'd like to open a new thread - albeit with all due respect to him.  His post , IMHO is just too important to slip through the cracks or to be potentially construed as being off-topic. Check it out > https:/

  • Using Places in iPhoto with aperture photos

    If we have a picture in aperture with the City and Country Name attribute filleds, this picture in iphoto will not have the info. So, iPhoto no uses the EXIF City and Country Name fields. are there any solution to use the exif info filled in apeture

  • Dropdown field in Table

    Dear Gurus, I have a Table In which I was using one fied as drop down. I am getting These drop down values from BAPI.. Now I need to Populate these Valuse in the dropdown element and Must again save the selected element to BAPI. Once I add another ro

  • Integration SAP LSO with MM

    Hi experts, I'm switching on the integration between MM and LSO in the client I'm working and I'm facing some issues. When I've tried to create the Organization elements on table T77S0, the parameters SEMIN PLANT and SEMIN STORE are not bringing the

  • Export Oracle report formula column to XMLP

    hi i am thinking about exporting an rdf report to xmlp and i am worried about keeping my formula columns in the xmlpublisher report. what is gonna happen to them ? thx Dan