date objects and database integration

Sometimes when I insert a date object into a database, it inserts as ' 2007 - 02 - 26 00:00:00 ' and other times it inserts properly as {ts ' 2007-02-26 00:00:00 '} most of the time I'm inserting 2 dates, one using createdate() with values of selects and the other using now(). now() was almost always insert the wrong way and the right way createdate, then after insertion I did an update and just put the now() field again and he under inert atmosphere properly. But earlier to create date inserted incorrectly.

From now on, these are minor issues, since I have a workaround, but they have drawbacks however

We should use the CreateODBCDate(), CreateODBCTime and
CreateODBCDateTime() functions when inserting objects in a date-time
date database field. It ensures the proper formatting.

#CreateODBCDateTime (now ()) #.

#CreateODBCDate (createDate (year, month, day)) #.

Tags: ColdFusion

Similar Questions

  • How to change data objects and update the corresponding task and task forms?

    Hi all

    I modified this thread because I found that I had many questions to ask.

    1.
    I'm quite new to OBPM and would like to know how to change data - for clarity objects add a new attribute "Dependents of the Client" "Customer care" - and therefore update the task that uses the 'customer information' what makes via data binding - I get an error message here - or via the data about the data Task-The chosen tab it does not appear to be linked to my approach in some sort.

    2.
    Will be the task form that I generated earlier in < 1 > update automatically? Is it possible to update manually if the task has been clearly customized?

    3.
    What are the objects of project data? They do not store values in my process. They are for the arguments only - like reusable process?

    Thanks in advance,

    Kind regards

    Yanis

    Hi Yanius,

    (1) assume that you start from scratch. First, you declare your data object structure. To do this, you must go to the BPM project Naviagtor, right-click on 'Catalogue of trades' and create a new Module. Then you can right click on the module you created and select the new object of trade. Add all the attributes you need. It is the same to declare a class in Java. Second, you must declare a variable of the type process you have created: select the process, go to the Structure display (if you don't go and activate it in menu view Jdev-> Structure). Right click on the Process data object and create your variable. It's like setting a variable in Java. In short, answering your question, make the path opposite: find in your process of type "Customer Details", then go to your catalog Business, right click and change the definition to add what you need.

    (2) the human task will not update automatically (annoying). If you change the object itself, so you don't need to change your mappings because actually there the same object you are through the task as in / out argument. There are two things here: the human task and form associated with it (where probably change you the subject i.e. customer details). Go to the form (.jspx) - click on the tab links (by default, you are in the Design). In the links page, there is a link on top: "Page Définition File" (something like proj/pageDef/...xml). Open the XML file and go to the source. There you can add manually now all the attributes you need and that were not available before (i.e. dependent Client). It's a little complicated, but at least you don't have to recreate it. particularly useful if you have already implemented and subsequently form, you need to add more things (business is very good to say otherwise, "I would like to see something else in the form" ;)

    (3) project data objects are visible by all processes that you have in the project rather than the object of process data that are visible only to the method where you set the variable to. This means that you declare an object of data of the project once and then it will be available to all processes. Keep in mind that each process has a copy of it. In other words, it is not like a global variable that everyone sees. If edit you in a single process, other processes will not see the new value.

    I hope that I have answered your questions.
    See you soon,.
    Felipe

  • Using the Eloqua.API to write to "Custom Data objects/data card Set.

    Does anyone know where there are examples for data objects programming customized via Eloqua.API, I created 2 custom data objects and you now need to write the code for these objects via the API. The examples of code that I used for the previous tasks such as create a contact, create business, update contact and company, describe the entity... I used the following link to complete the previous, above the tasks mentioned.

    http://www.eloquatrainingcenter.com/Portal/documentation/API/default.htm

    However, I don't see anything about the programming of a "Custom Data object/data card Set"

    Joey

    Hi Joey - looks like you you will first make a. Query() call using the name or the GUID personalized criteria, then the returned object, you can retrieve the Id property that will have the whole you need.

    Without this whole you will not be able to correctly map the data card.

  • Can not get BAM icommand working to export my Dataobject object and report

    Hello

    Using Oracle SOA Suite 11.1.1.5 on Linux

    I am new to BAM.

    I want to migrate my data object and report to a new environment.

    But I can't the icommand interface to work it seems to me that the icommand interface is not available.

    There is no BAMICommandConfig.xml - I can only find BAMCommonConfig.xml in /applications/oracle-bam_11.1.1/config/BAMCommonConfig.xml

    Said Oracle documentation I can find the BAMICommandConfig.xml of the following path, but I can't find this file:

    The BAMICommandConfig.xml file is located in WLS_HOME/user_projects/domains/base_domain/config/fmwconfig/servers/bam_server1/applications/oracle-bam_11.1.1/config/.

    Am I missing something?

    Hello

    you use the Linux operating system. so you need to run. / icommand.sh.

    in my previews post, I said clearly that you have to run \Oracle_SOA1\bam\bin\icommand.bat or icommand.sh. based on your env
    Please try with the commande./icommand.sh, you may be able to get.

    for you two question get answered if use. ICommand.sh

    Best regards
    Shiva Shankar
    TechDemocracy

  • Can I evaluate and fill out a form with data from a custom data object?

    I'm not a developer, but I'm trying to find as much information for my web team so they can implement this for me.  We use the E10.

    I have some information for the contacts stored in a data object custom I want to use for pre-population information access door and in another form.  For example:

    1. User enters his email address into a form and hands
    2. A search and contact and custom data object (CDO)
      1. If the contact has a CDO with the required information, he fills the following form with the information
      2. If the contact does not have the required ORDER, it displays information and a link to the place where to go next

    Is it possible, and where should I direct my developers learn more about treatments?

    Richard

    Hi Richard,

    You can certainly do so using data for the Eloqua Web search (Setup > data Web Look Ups). A database search allows you to request data stored in Eloqua, bring up the page and with a few JS, we determine if they will go on track 1 or 2 you described above.

    Is that an advanced feature requires knowledge of HTML and JS. Here is a good article on data search that should help:

    Using the Eloqua Cookie to customize your Web site

    If you have any specific questions, our support team is very familiar with this feature and can help to solve problems or answer specific questions.

    -Andrew.

  • Boxes and custom data objects

    I am creating a form with a list of checkboxes based on interests of customers - there are 8 in total and they can select several options.

    What I want to do is to create shared lists for each option which will serve as a member of segment for future mailings.

    I also need to store data for that person together so if I never, I can go and say ' well, Joe Bloggs here is interested in X, Y and Z, so I'll put him in the countryside, A and B'.

    Are the data objects custom the way forward? I had a go at creating and mapping it, but I don't know what to do with these boxes!

    Thank you!!

    For the shared list, simply use the step "Add to shared Contact list" of your form and make it to the condition that the box is checked. You will need 8 of these steps, one for each option.

    To preserve the data, I would like to use a custom data object. Create a new CDO set with an address field of the email and one for each of your boxes (and any other information you want, of course.) And then use the processing stage of 'Update Custom Data object - With Custom Values'. You can define this step to add a 'yes' or 'on' or whatever you want to the appropriate field in the ORDER. Yet once, make this step on the box being checked in your form. Yet once, you need to create 8 of these steps, but once you get the first fact, others should go faster.

    PS, I kept typing "from" instead of "form". Argh.

  • Petition for grant to display all objects in the DB in the data base and discovers the DOF for each.

    Dear administrators,

    I created the user but now I have a requirement for the granting of privileges to view all objects in the DB in the data base and discovers the DOF for each.

    Any help please

    Ritz

    Thanks to advise all the

  • Reading file and dump the data into the database using BPEL process

    I have to read the CSV file and insert data into the database... To do this, I created some asynchronous bpel process. Adapter filed added and associated with the receive activity... Adapter DB has added and associated with the Invoke activity. Receive two total activity are available in the process when trying to Test em, receive only the first activity is complete and awaits the second receive activity. Please suggest how to proceed with...

    Thanks, Maury.

    Hi Maury,

    There is no need in step 2 that u mentioned above. I donot find useless a webservice?

    The process will be launched by the CSV file, then using the processing activity, you can put it in the DB.

    There should be no way where you can manually test it by giving an entry. All you can do to test is to put the file in the folder you mentioned when configuring the file adapter.

    You just need to have the composite as below:

    ReadCSVFile---> BPEL--> DB adapter

    And in your BPEL process:

    Recieve--> Transformation activity--> call activity

    Try to work on some samples listed on the oracle site and go through the below URL:

    The playback of the file adapter feature using

    Thank you

    Deepak.

  • Fragmentation of the distribution of system and database data

    Hi all

    I'm working on a scenario (University), with the fragmentation of a central database. A company has regional offices, i.e. (England, Wales, Scotland) and each regional office has different combinations of areas of activities. They currently have a central database in their seat and my task is to "design a data distribution system. Regime that means something like the horizontal fragmentation / portrait? Also can someone point me to a specific example of the Oracle of creating a fragmented table? I tried to search online and found the keyword ' partition by ", but not much with the exception of database that links - but I think that it is more concerned with the mark than to actually create the fragments.

    Thank you very much for your time

    >
    I would like to create a Db (or data access system) for each region that contains the data for this region - only, for example in Wales has that one sector of activity must therefore only the entered information and used for staff in this area. Instead of completely replicating the entire DB in each regional office, I want to create the smallest region specific "fragments" of the central office DB.

    Regions should combine once a month for pay, etc., but the idea is to distribute the data locally. My task is to find the best solution for the scenario, put in balance the advantages and disadvantages
    >
    The simplest solution is what I suggested in my first answer.

    Use the central DB. Partition of the table as your sample; by region. RLS (row-level security) allows you to restrict the regions to their own data.

    Only a single "Central" table has ALL data regions; It is only in the partitions.

    The only real issue is that the regions will have access as a remote central DB. This isn't really a problem in this day and age. The largest companies have data centers and local regions or offices do not have their own DB.

    In my humble OPINION the replication should be AVOIDED unless it is absolutely necessary.

  • How to get data from a database table and insert into a file

    Hello
    I'm new to soa, I want to create an xml with the data from database tables, I'll have the xsd please suggest me how to get the data in the tables and insert in a file
    concerning

    in your bpel process, you can use the db adapter to communicate with the database.
    with this type of adapter, you can use stored procedures, selects, etc to get the data from your database into your bpel workflow.

    When did it call in your bpel to the db adapter process it will return an output_variable with the contents of your table data, represented in a style of xml form.

    After that, you can use the second card (a file synchronization adapter) to write to the content of this variable in output to the file system

  • Problem link DB between active Data Guard and reports application database

    My version of the 11.2.0.2.0 and OS database is Oracle Solaris 10 9/10.
    I am facing a problem in my custody of data Active data base for purposes of tax. Active Data guard information is as below.

    SQL > select name, database_role, open_mode from v$ database;

    NAME DATABASE_ROLE OPEN_MODE
    --------- ---------------- --------------------
    ORCL PHYSICS READ SHALL ONLY APPLY

    Detail of the problem is less than
    ------------------------------
    I have created a db link (name: DATADB_LINK) between active data guard and report of application of data base for purposes of tax.
    SQL > create database DATADB_LINK link to connect to HR identified by HR using 'DRFUNPD ';
    Database link created.

    But when I run a query using db link to my database of enforcement report I got this error below.

    ORA-01555: snapshot too old: rollback segment number 10 with the name ' _SYSSMU10_4261549777$ ' too small
    ORA-02063: preceding the line of DATADB_LINK

    Then I see logfile named database alart Active Data Guard and get below error

    ORA-01555 caused by the following SQL statement (SQL ID: 11yj3pucjguc8, time of request = 1 sec, SNA: 0x0000.07c708c3): SELECT "A2". "' BUSINESS_TRANSACTION_REFERENCE ', 'A2 '. "' BUSINESS_TRANSACTION_CODE ', MAX (CASE 'A1'. "TRANS_DATA_KEY"WHEN "feature' AND 'A1'." " END OF TRANS_DATA_VALUE"), MAX (CASE 'A1'. "TRANS_DATA_KEY" WHEN 'otherFeature' THEN 'A1' '. "" END OF TRANS_DATA_VALUE")

    But the interesting point if I run the query report directly in the Active Data Guard database, I got never error.

    So it's a problem of link DB between active Data Guard and other databases?

    Fazlul Kabir Mahfuz wrote:
    My version of the 11.2.0.2.0 and OS database is Oracle Solaris 10 9/10.
    I am facing a problem in my custody of data Active data base for purposes of tax. Active Data guard information is as below.

    SQL > select name, database_role, open_mode from v$ database;

    NAME DATABASE_ROLE OPEN_MODE
    --------- ---------------- --------------------
    ORCL PHYSICS READ SHALL ONLY APPLY

    Detail of the problem is less than
    ------------------------------
    I have created a db link (name: DATADB_LINK) between active data guard and report of application of data base for purposes of tax.
    SQL > create database DATADB_LINK link to connect to HR identified by HR using 'DRFUNPD ';
    Database link created.

    But when I run a query using db link to my database of enforcement report I got this error below.

    ORA-01555: snapshot too old: rollback segment number 10 with the name ' _SYSSMU10_4261549777$ ' too small
    ORA-02063: preceding the line of DATADB_LINK

    Then I see logfile named database alart Active Data Guard and get below error

    ORA-01555 caused by the following SQL statement (SQL ID: 11yj3pucjguc8, time of request = 1 sec, SNA: 0x0000.07c708c3): SELECT "A2". "' BUSINESS_TRANSACTION_REFERENCE ', 'A2 '. "' BUSINESS_TRANSACTION_CODE ', MAX (CASE 'A1'. "TRANS_DATA_KEY"WHEN "feature' AND 'A1'." " END OF TRANS_DATA_VALUE"), MAX (CASE 'A1'. "TRANS_DATA_KEY" WHEN 'otherFeature' THEN 'A1' '. "" END OF TRANS_DATA_VALUE")

    But the interesting point if I run the query report directly in the Active Data Guard database, I got never error.

    So it's a problem of link DB between active Data Guard and other databases?

    Check this statement that applies to your environment

    * ORA-01555 on Active Data Guard Standby Database [1273808.1 ID] *.

    also

    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:8908307196113

  • Download the image to the directory and database of the same form data

    Hi all

    I play to build a shopping cart (never done before) a tutorial of Gordon Knapp at www.webthang.com.

    I created the site and it works perfectly. Now, I want to extend it.

    There is a form that allows the user to add data to the database. I would also like to be able to transfer an image to a directory on the server and add the data to the database at the same time of the same shape. It would be good if the input field "< input name ="product_picture"type ="text"id ="product_picture"tabindex ="6"size ="50"/ >" could be filled automatically by the file name of the image being downloaded, but it's not a neccessity.

    I looked at different packages ASP Upload and I can upload a single image, but none of them clearly show how to download the image and add data to the database at the same time.

    It is a private project I need suggestions for free.

    The tutorial shows how to create Dev Ultra site but works perfectly well in DW. The page looks like this. It is named "admin_add.asp":

    "< %@LANGUAGE="VBSCRIPT "CODEPAGE ="65001"% >
    "" <!-#include = file '... / Connections/con_ecom.asp "-->
    < %
    Dim MM_editAction
    MM_editAction = CStr (Request.ServerVariables ("SCRIPT_NAME"))
    If (Request.QueryString <>"") then
    MM_editAction = MM_editAction & "?" & Server.HTMLEncode (Request.QueryString)
    End If

    'boolean to abandon a record edition.
    Dim MM_abortEdit
    MM_abortEdit = false
    % >
    < %
    "Implementation of the IIR.
    Function MM_IIf (condition, ifTrue or ifFalse)
    If condition = "" then
    IfFalse = MM_IIf
    On the other
    IfTrue = MM_IIf
    End If
    End Function
    % >
    < %
    If (CStr (Request ("MM_insert")) = "add_form") then
    If (not MM_abortEdit) then
    'execute the insert.
    Dim MM_editCmd

    Set MM_editCmd = Server.CreateObject ("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_con_ecom_STRING
    MM_editCmd.CommandText = "INSERT INTO products (product_category product_name, product_price, product_briefdesc, product_fulldesc, product_picture) VALUES (?,?,?,?,?,?)".
    MM_editCmd.prepared = true
    MM_editCmd.parameters.Append MM_editCmd.CreateParameter ("param1", 202, 1, 50, Request.Form ("product_category")) ' adVarWChar
    MM_editCmd.parameters.Append MM_editCmd.CreateParameter ("param2", 202, 1, 50, Request.Form ("product_name")) ' adVarWChar
    MM_editCmd.parameters.Append MM_editCmd.CreateParameter ("param3", 5, 1, -1, MM_IIF (Request.Form ("product_price"), Request.Form ("product_price"), null)) ' adDouble
    MM_editCmd.parameters.Append MM_editCmd.CreateParameter ("param4", 203, 1, 536870910, Request.Form ("product_briefdesc")) ' adLongVarWChar
    MM_editCmd.parameters.Append MM_editCmd.CreateParameter ("param5", 203, 1, 536870910, Request.Form ("product_fulldesc")) ' adLongVarWChar
    MM_editCmd.parameters.Append MM_editCmd.CreateParameter ("param6", 202, 1, 50, Request.Form ("product_picture")) ' adVarWChar
    MM_editCmd.execute
    MM_editCmd.ActiveConnection.close

    ' add the query string to the redirect URL
    Dim MM_editRedirectUrl
    MM_editRedirectUrl = "admin_control.asp".
    If (Request.QueryString <>"") then
    If (InStr (1, MM_editRedirectUrl, "?", vbTextCompare in) = 0) then
    MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString
    On the other
    MM_editRedirectUrl = MM_editRedirectUrl & "" & Request.QueryString
    End If
    End If
    Response.Redirect (MM_editRedirectUrl)
    End If
    End If
    % >
    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN".
    " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ".
    "< html xmlns =" http://www.w3.org/1999/xhtml "> "
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"
    < title > Administration - add a < /title > product
    "" < link href = "... / scripts/admin.css" rel = "stylesheet" type = "text/css" / >
    "< script type =" text/javascript"src ="... / scripts/ecom.js "> < / script >"
    < / head >

    < body onLoad = "adminTitle ()" >
    < div id = 'wrapper' >

    < div id = "pageHeading" > ADMINISTRATION - add a PRODUCT < / div >

    < div id = "navBar" > < a href = "admin_control.asp" > < /a > control | " Add | < a href = "admin_view.asp" > view < /a > | < a href = "admin_update1.asp" > update < /a > | < a href = "admin_delete1.asp" > delete < /a > | "" < a href = "... / Default.asp" > shop < /a > < / div >

    < br / >

    < name of the form = "add_form" id = "add_form" method = "POST" action = "< % = MM_editAction % >" >
    < table border = "1" align = "center" id = "tblArea" >
    < b >
    < class td = "tdLabel" > < table > product category
    < td colspan = "2" > < input name = "product_category" type = "text" id = "product_category" tabindex = "1" size = "50" / > < table >
    < /tr >
    < b >
    < class td = "tdLabel" > Product Name < table >
    < td colspan = "2" > < input name = 'product_name' type = 'text' id = 'product_name' tabindex = "2" size = "50" / > < table >
    < /tr >
    < b >
    < class td = "tdLabel" > < table > product price
    < class td = "tdContent" colspan = "2" > < input type = "text" name = "product_price" id = "product_price" tabindex = "3" size = "50" / > < table >
    < /tr >
    < b >
    < class td = "tdLabel" > product short Description < table >
    < class td = "tdContent" colspan = "2" > < textarea name = "product_briefdesc" id = "product_briefdesc" cols = "47" lines = "4" tabindex = "4" > < / textarea > < table >
    < /tr >
    < b >
    < class td = "tdLabel" > full < table > Product Description
    < class td = "tdContent" colspan = "2" > < textarea name = "product_fulldesc" id = "product_fulldesc" cols = "47" rows = "5" tabindex = "5" > < / textarea > < table >
    < /tr >
    < b >
    < class td = "tdLabel" > < table > product Image file name
    < class td = "tdContent" colspan = "2" > < input name = "product_picture" type = "text" id = "product_picture" tabindex = "6" size = "50" / > < table >
    < /tr >
    < b >
    < class td = "tdLabel" > < table >
    < td align = "center" > < input type = "reset" name = "Reset" id = "Reset" value = "Reset form" / > < table >
    < td align = "center" > < input type = "submit" name = "Submit" id = "Submit" value = "Add to the shop" / > < table >
    < /tr >
    < /table >
    < input type = "hidden" name = "MM_insert" value = "add_form" / >
    < / make >

    < / div >
    < / body >
    < / html >

    Hope you can help.

    Best regards

    Martin

    Have sorted it.

    Found an excellent tutorial to Webthang.

    http://www.webthang.co.UK/Tuts/tuts_dmx/rob15/rob15.asp

  • CAN I RECOVER DELETED DATA FILE AND ITS TABLESPACE BY USING FLASHBACK DATABASE

    Hello!

    I CREATED THE TABLESPACE WITH ITS DATA FILE.

    SQL > create tablespace usmantbs datafile 'E:\oracle\product\10.2.0\oradata\orcl\usman.dbf' recording petit_fichier the size of 10 M extent management local segment space management auto;

    THEN, I CREATED A USER AND HIM ENTRUST THIS TABLESPACE.

    SQL > create default profil_utilisateur identified by Neil Leal Microsoft account unlock default tablespace usmantbs;
    SQL > grant connect, resources for Neil;

    I CONNECTED WITH Neil as USER AND CREATED a TABLE.

    SQL > conn Leal/Leal
    SQL > create table baseball (id number (9));

    SQL > select current_scn from v$ database;

    CURRENT_SCN
    ---------------------
    545863

    Then I deleted the tablespace including contents and data files...

    SQL > drop tablespace usmantbs including content and data files;

    I have no backup of this data file, but my database is in archive log...

    So I can... .flashback database to the SNA 545863 as it was before the fall... to get back my along its tablespace data file
    Wil I get my datafile back or not? Help, please...

    You can test it by yourself easily :) You will not be able to open your database
    After getting the error, just rename this data file and flashback again. Then open your database

    C:\Documents and Settings\Administrator>sqlplus "/as sysdba"
    
    SQL*Plus: Release 10.2.0.1.0 - Production on Sat Aug 1 14:20:34 2009
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount
    ORACLE instance started.
    
    Total System Global Area  293601280 bytes
    Fixed Size                  1248624 bytes
    Variable Size              96469648 bytes
    Database Buffers          192937984 bytes
    Redo Buffers                2945024 bytes
    Database mounted.
    
    SQL> alter database archivelog;
    
    Database altered.
    
    SQL> alter database flashback on;
    
    Database altered.
    
    SQL> alter database open;
    
    Database altered.
    
    SQL> create tablespace tb datafile 'c:\tb.df' size 1m;
    
    Tablespace created.
    
    SQL> create user tb identified by tb;
    
    User created.
    
    SQL> grant dba to tb;
    
    Grant succeeded.
    
    SQL> alter user tb default tablespace tb;
    
    User altered.
    
    SQL> create table tb (id number);
    
    Table created.
    
    SQL> select current_scn from v$database;
    
    CURRENT_SCN
    -----------
         547292
    
    SQL> drop tablespace tb including contents and datafiles;
    
    Tablespace dropped.
    
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount
    ORACLE instance started.
    
    Total System Global Area  293601280 bytes
    Fixed Size                  1248624 bytes
    Variable Size              96469648 bytes
    Database Buffers          192937984 bytes
    Redo Buffers                2945024 bytes
    Database mounted.
    
    SQL> flashback database to scn 547292;
    flashback database to scn 547292
    *
    ERROR at line 1:
    ORA-38795: warning: FLASHBACK succeeded but OPEN RESETLOGS would get error
    below
    ORA-01245: offline file 5 will be lost if RESETLOGS is done
    ORA-01111: name for data file 5 is unknown - rename to correct file
    ORA-01110: data file 5: 'C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\UNNAMED00005'
    
    SQL> alter database open resetlogs;
    alter database open resetlogs
    *
    ERROR at line 1:
    ORA-01245: offline file 5 will be lost if RESETLOGS is done
    ORA-01111: name for data file 5 is unknown - rename to correct file
    ORA-01110: data file 5: 'C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\UNNAMED00005'
    
    SQL> select name from v$datafile;
    
    NAME
    --------------------------------------------------------------------------------
    
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\SYSTEM01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\UNDOTBS01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\SYSAUX01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\USERS01.DBF
    C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\UNNAMED00005
    
    SQL> alter database create datafile 'C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\UNNAMED00005' as 'c:\tb.dbf';
    
    Database altered.
    
    SQL> flashback database to scn 547292;
    
    Flashback complete.
    
    SQL> alter database open resetlogs;
    
    Database altered.
    
    SQL>
    
    SQL> select * from tb;
    
    no rows selected
    
    SQL> select name from v$datafile;
    
    NAME
    --------------------------------------------------------------------------------
    
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\SYSTEM01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\UNDOTBS01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\SYSAUX01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\USERS01.DBF
    C:\TB.DBF
    
    SQL> select name from v$tablespace;
    
    NAME
    ------------------------------
    SYSTEM
    UNDOTBS1
    SYSAUX
    USERS
    TEMP
    TB
    
    6 rows selected.
    
    SQL>
    

    - - - - - - - - - - - - - - - - - - - - -
    Kamran Agayev a. (10g OCP)
    http://kamranagayev.WordPress.com
    [Step by step installation Oracle Linux and automate the installation by using Shell Script | http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

    Published by: Kamran Agayev, a., July 27, 2009 14:38

  • 2 data files and objects

    Hi all. Suppose I have a tablespace 'users' wich consists of 2 data files on different disks. How do I manage objects to improve performance, how to define this table must be in the first data file and table B in the second file? How to do such a thing? (B-)

    Published by: Junior sysdba on October 6, 2008 22:27

    Hello
    When we create an object in any tablespace, Oracle server itself selects the data file in the tablespace randomly and we cannot specify the data file for a particular object as a table. But it is when the object was created. Actually the server looks in the first available memory contiguous tfor storage.
    But we can actually manage the insertion of data in the object as table as data for a specific table should go to any particular data file. To do this follow these steps.
    1. before inserting data to estimate the size of data to insert.
    2. depending on the size use statement "Alter table allocate extended (datafile...)" to manually allocate scopes in advance.
    3 insert the data.

    This will ensure that the data are inserted in the extents allocated to a particular data file.

    Kind regards
    Navneet

  • Data Guard and connectable to database

    Possible to have some project documents in a CDP that is used for Data Guard and other PDB files don't not ITIS?

    No, not in the current version. You must use the PDBs als for DG or nothing.

Maybe you are looking for

  • Difficulty playing the songs

    Hello When I select an album, the titles of the songs on this album spread quickly by on the screen (again and again and again), but nothing plays. Any ideas on what could be the problem? Thank you

  • Caused Windows mail in trouble with Yahoo mail

    I use Windows mail version 6, with Windows Vista. I use this program to receive my yahoo mail but I noticed that once received by Windows mail, kept on the server of Yahoo emails are automatically sent to the deleted items. This causes problems for 2

  • Choice of Aurora R1 video card upgrade

    I have what I believe to be the original Aurora (R1), purchased late 2009 directly from Dell.  I had some problems lately with the blockages, especially during the game.  I replace food due to some other strange blocks, but this is as good as another

  • Calendar of the blackBerry Smartphones on screen?

    Is it possible to display the calendar on the screen or home screen or what we call the bottom screen to screen? THX

  • find deleted table entry

    HelloMy database of VERIFICATION is not enabled, and the database is in NOARCHIVELOG mode. is it possible to identify which deleted table entry?