Automatically create table definitions
Is there a utility or tool that will automatically take an XML document and create a table or object type in the database without having to manually doing it?
--JM
It depends on how you want to store the XML. If as a CLOB then the Transviewer Beans come with such a sample application. On the other hand if you want it stored as only data across tables, then there is none as until we have an XML Schema standard there is no standard way to specify the datatypes to be used.
Oracle XML Team
Similar Messages
-
Troubles creating table definition in new repositiory
hi there,
we installed a designer 6i repositiory on a linux 8.1.7.2 ee server database, all worked fine. installation of the same repositiory version under on a windows 2000 pro system with a 8.1.7.4 ee server database works fine, too. but when trying to create objects in the windows repos we keep getting errors concerning non existing repository objects. example: attempting to create a relational table definition fail with the following stack trace:
Message
RME-02105: Oracle error occurred...
ORA-06550: line 2, column 11:
PLS-00201: identifier 'CIOTABLE_DEFINITION.DATA' must be declared
ORA-06550: line 2, column 11:
PL/SQL: Item ignored
ORA-06550: line 9, column 3:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 9, column 3:
PL/SQL: Statement ignored
ORA-06550: line 10, column 3:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 10, column 3:
PL/SQL: Statement ignored
ORA-06550: line 11, column 3:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 11, column 3:
PL/SQL: Statement ignored
ORA-06550: line 12, column 3:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 12, column 3:
PL/SQL: Statement ignored
ORA-06550: line 13, column 3:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 13, column 3:
PL/SQL: Statement ignored
ORA-06550: line 14, col
Message
RME-02124: Failed to execute SQL statement: declare
pl1_el0 CIOTABLE_DEFINITION.data;
utility varchar2(3);
curr_el integer;
begin
savepoint rm_dispatch;
rmmes.clear;
curr_el := 0;
pl1_el0.i.INDEX_ONLY_FLAG := true;
pl1_el0.v.INDEX_ONLY_FLAG := :p2_el0;
pl1_el0.i.COLUMN_PREFIX := true;
pl1_el0.v.COLUMN_PREFIX := :p3_el0;
pl1_el0.i.TYPES := true;
pl1_el0.v.TYPES := :p4_el0;
pl1_el0.i.IRID := true;
pl1_el0.v.IRID := :p5_el0;
pl1_el0.i.IVID := true;
pl1_el0.v.IVID := :p6_el0;
pl1_el0.i.NUMBER_OF_TIMES_MODIFIED := true;
pl1_el0.v.NUMBER_OF_TIMES_MODIFIED := :p7_el0;
pl1_el0.i.ALIAS := true;
pl1_el0.v.ALIAS := :p8_el0;
pl1_el0.i.ID := true;
pl1_el0.v.ID := :p9_el0;
pl1_el0.i.NAME := true;
pl1_el0.v.NAME := :p10_el0;
pl1_el0.i.JOURNAL_LOCATION := true;
pl1_el0.v.JOURNAL_LOCATION := :p11_el0;
pl1_el0.i.DISPLAY_TITLE := true;
pl1_el0.v.DISPLAY_TITLE := :p12_el0;
CIOTABLE_DEFINITION.INS(:p1_el0,pl1_el0);
:errcnt := 0;
exception when others then
rmmes.get_error_state(utility,:excode);
rmmes.get_product(utility,:exprod);
:exutil := utility;
:errcnt := rmmes.getsize;
:sqlcod := SQLCODE;
:sqlmsg := SQLERRM;
:currel := curr_el;
rollback to savepoint rm_dispatch;
end;
Message
RME-00222: Failed to dispatch operation to Repository
any help appreciated,
greetings,
friedrich.Hi,
Actually the errors thrown here are not exactly non-existing database objects.These are Table and API definitions of the repository which are used when you create Database objects.
You can try by checking if there are any invalid objects in the repository(Compile them first if there are any)and can give it a shot after running a full reconcile of the repository.
If still the problem persists, can you give the details about which Designer Version you are using.
Thanks
Vishal Jain -
RSA1 automatically creating port definitions
When setting up BW connection to ECC and SCM systems, RSA1 auto creates port definitions using the generated A000000X format. I want to use a predinfed port like BIQ100 or BIP100 (source client format).
Is there a way to use predinfed versus generated port defintion.
Thanks
JexunGo to transaction WE20 and maintain the port in the outbound parameter in the correct logical system under partner type LS.
-
Automatically create table of contents
Hi,
Does acrobat have a way of automatically generating a table of contents? I'm guessing not, but my boss asked, so I want to confirm that 'no' is the correct answer. I'm not talking about bookmarks. I mean a page at the beginning of the doc. I know Word has this feature.
Thanks!Does acrobat have a way of automatically generating a table of contents?
No. -
Creating table / field definition
HEllo,
I am trying to create a table using Microsoft Access Driver with the following field definitions:
createStatement =
"CREATE TABLE Employee(SSN VARCHAR(9)PRIMARY KEY, "
+ "FirstName VARCHAR(15), LastName VARCHAR(15), "
+ "MiddleInitial CHAR, BirthDATE DATE, SALARY DECIMAL(10,2), "
+ "DNO int)";
Unfortuately I am getting error when I compile. (CREATE TABLE Employee(SSN VARCHAR(9)PRIMARY KEY, FirstName VARCHAR(15), LastName VARCHAR(15), MiddleInitial CHAR, BirthDATE DATE, SALARY DECIMAL(10,2), DNO int)
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in field definition.
Cannot figure out what could be wrong in my code....
If somebody could glance at it and have any suggestions, pleasethanks for the advise, but my ORACLE book is oriented
to create tables with SQL....
Anyway still looking for the solution of "mistery"
of my "syntax error field definition"If you're suggesting that the SQL that Oracle recognizes and the SQL Access recognizes are the same, I think you're mistaken. I would follow DrClap's advice (this is just generally a good thing to do) and look for Access-specific documentation. -
Bookmarks are not automatically creating based on Word 2013 Table of Contents.
Bookmarks are not automatically creating based on Word 2013 Table of Contents. In older version of Word, the Style built Table of Contents converted into Bookmarks when PDFing.
I figured it out. There is a new checkbox you must turn on in Word 2013 when export to PDF that allows it to convert items to Bookmarks when PDFing.
-
ODI - Create a Target Table Definition from a source definition
Hi - Is there a way to create a target flat file definition from an oracle table definition? I have some oracle tables and I want to create flat files from them but don't want to have to re-type the file definition because it is nearly exactly the same as ora table (100+ columns). The ora tables are already reversed.
Thanks!
DanWell I spoke too soon. It seems to not like my alias?
7000 : null : java.sql.SQLException: Invalid COL ALIAS "DISTRICT ID" for column "LOCAL"
java.sql.SQLException: Invalid COL ALIAS "DISTRICT ID" for column "LOCAL"
Is this because there are spaces in the column names (in the ora column names and the file... since the file is a copy of the table)??
insert into ESC_DISTRICT
DISTRICT KEY,
DISTRICT CODE,
LOCAL DISTRICT ID,
DISTRICT NAME,
DISTRICT STATE ABBREVIATION,
DISTRICT STATE NAME,
STATE DISTRICT ID,
ORGANIZATION TYPE CODE,
values
:DISTRICT_KEY,
:DISTRICT_CODE,
:LOCAL_DISTRICT_ID,
:DISTRICT_NAME,
:DISTRICT_STATE_ABBREVIATION,
:DISTRICT_STATE_NAME,
:STATE_DISTRICT_ID,
thanks! -
When I drop a table, automatic creating dummy tables
Hi, All
I am using 11g
in this, whnever i drop a table , Oracle automatically creates 1 table like this name ("BIN$ja1wOa6kYLPgQAB/AQB5ZQ==$0")
This table i am not able to drop
Even , when i see in enterprise console these table are not showing
But when i am seeing through SqlPlus it is showing the name in table list
pls. provide any solution
Thanks in advance
pankajuser11308301 wrote:
Hi, All
I am using 11g
in this, whnever i drop a table , Oracle automatically creates 1 table like this name ("BIN$ja1wOa6kYLPgQAB/AQB5ZQ==$0")
This table i am not able to drop
Even , when i see in enterprise console these table are not showing
But when i am seeing through SqlPlus it is showing the name in table list
pls. provide any solution
Thanks in advance
pankajThis is called recyclebin. Dropped tables goes into the recyclebin, and can be restored from the recyclebin.
If you dropped table with PURGE option, it would not go into recyclebin.
To drop object from recyclebin itself, use SQL>purge table "BIN$ja1wOa6kYLPgQAB/AQB5ZQ==$0" ; -
How to automatically create the custom migration scripts after recreating SSMA project?
How to automatically create the custom data migration scripts after recreating SSMA project?
There is number of tables ( big tables with BLOBS) which I want to set up automatically to be migrated with custom migration scripts (replacing e.g. attribute named "FILE" with "TO_BLOB('') AS FILE" ).
So the question is how to open MB file (I think that it should be standard db of some destktop RDBMS) ?Hi Roman.Pokrovskij,
According
to your description, we can use SSMA tool to migrate data from one database (including Access, Oracle and so on) to SQL Server via GUI or the scripts. There is an example about migrating Access database to SQL Server via the
custom migration scripts, you can review refer to them.
<?xml version="1.0" encoding="utf-8"?>
<ssma-script-file xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\Microsoft SQL Server Migration Assistant for Access\Schemas\A2SSConsoleScriptSchema.xsd">
<config>
<output-providers>
<output-window suppress-messages="false"
destination="stdout"/>
<upgrade-project action="yes"/>
<data-migration-connection source-use-last-used="true"
target-server="target_1"/>
<progress-reporting enable="false"
report-messages="false"
report-progress="off"/>
<object-overwrite action="skip" />
</output-providers>
</config>
<servers>
<!-- Server definition for Sql server target server-->
<sql-server name="target_1">
<sql-server-authentication>
<server value="$SQLServerName$"/>
<database value="$SQLServerDb$"/>
<user-id value="$SQLServerUsrID$"/>
<password value="$SQLServerPassword$"/>
<encrypt value="true"/>
<trust-server-certificate value="true"/>
</sql-server-authentication>
</sql-server>
</servers>
<script-commands>
<create-new-project project-folder="$project_folder$ "
project-name="$project_name$"
overwrite-if-exists="true"/>
<connect-target-database server="target_1"/>
<load-access-database database-file="$AccessDbFolder$\$AccessDatabaseFile$"/>---
<!--Schema Mapping-->
<map-schema source-schema="$AccessDatabase$" sql-server-schema="$SQLServerDb$.dbo" />
<!-- Convert schema -->
<!-- Example: Convert entire Schema (with all attributes)-->
<convert-schema object-name="$AccessDatabase$"
object-type="Databases"
conversion-report-overwrite="true"
verbose="true"
report-errors="true" />
<!-- Synchronize target -->
<!-- Example: Synchronize target entire Database with all attributes-->
<synchronize-target object-name="$SQLServerDb$.dbo"
on-error="fail-script" />
<!-- Data Migration-->
<!--Example: Data Migration of all tables in the schema (with all attributes)-->
<migrate-data object-name="$AccessDatabase$.Tables"
object-type="category"
report-errors="true"
verbose="true"/>
</script-commands>
</ssma-script-file>
There is a similar scripts about migrating Oracle database to SQL Server, you can use powershell script to automatically run the console for scripts/variable files, saved in the specified folder. For more information, review the following
article.
http://blogs.msdn.com/b/ssma/archive/2010/09/09/performing-database-migration-assessment-using-ssma-console-application.aspx
Regards,
Sofiya Li
Sofiya Li
TechNet Community Support -
Performance problem while creating table at runtim
I have pl/sql block like
Begin
Exceute immediate 'drop table x '
Execute immediate 'create table x as select .... stament (complex select by joining 7-8 tables);
Execute immediate ('create index ind1 on table x'); -- i am not writing the full syntax
End;
The select statement used in create table is fetching 10 millions of rows (approx).
The above pl/sql block is taking 30-45 minutes.
Without going in depth of query used in select (as i have to explain the functionality otherwise),
Could any one please suggest to create a table in fatset way like nolooging or seperate tablespace with bigger block size or any change in any DB parameter etc.
The db server is having excelent hardware configuration 32GB ram , multi CPU (16 CPUs) , Huge hardisk.
ThanksCREATE OR REPLACE VIEW VW_CUST_ACCT_BUS_REQ AS
SELECT FC.V_CUST_NUMBER,
FC.V_ACCT_NUMBER,
FC.V_ACCT_CUST_ROLE_CODE
from Fct_Acct_Cust_Roles FC --current schema table
join dim_jurisdiction DC on DC.V_JURISDICTION_CODE = FC.V_SRC_CNTRY_CODE
JOIN VW_APPLN_PARAMS APP ON APP.V_PARAM_CATEGORY = 'KYC'
AND APP.V_PARAM_IDENTIFIER =
'KYC_PROCESSING_DATE'
AND APP.N_CNTRY_KEY = DC.N_JURISDICTION_KEY
AND FC.FIC_MIS_DATE = APP.d_Param_Date
UNION
SELECT BUS_CUST_ACCT.CUST_INTRL_ID,
BUS_CUST_ACCT.ACCT_INTRL_ID,
BUS_CUST_ACCT.CUST_ACCT_ROLE_CD
FROM BUS_CUST_ACCT --another schema's table containing rows in millions.
--Can you tell me any other method to acheive the above select
CREATE TABLE vw_kyc_dr_ip as
SELECT FCU.V_SRC_CNTRY_CODE JRSDCN_CD,
FCU.V_CUST_NUMBER v_cust_id,
FACRS.V_CUST_NUMBER v_ip_cust_id,
ROLS.F_CONTROLLING_ROLE f_cntrl_role
FROM VW_CUST_BUS_REQ FCU -- This is another Mview it contains data approx 50,000
JOIN VW_CUST_ACCT_BUS_REQ FACR/* see above view definition, contains rows in millions */ ON FCU.V_CUST_NUMBER = FACR.V_CUST_NUMBER
JOIN VW_CUST_ACCT_BUS_REQ FACRS ON FACR.V_ACCT_NUMBER = FACRS.V_ACCT_NUMBER
JOIN DIM_ACCT_CUST_ROLE_TYPE ROLS ON ROLS.V_ACCT_CUST_ROLE_CODE =FACRS.V_ACCT_CUST_ROLE_CODE
UNION
(SELECT FCU.V_SRC_CNTRY_CODE JRSDCN_CD,
FCU.V_CUST_NUMBER v_cust_id,
FCR.V_RELATED_CUST_NUMBER v_ip_cust_id,
'N' f_cntrl_role
FROM VW_CUST_BUS_REQ FCU
JOIN VW_CUST_CUST_BUS_REQ FCR ON FCU.V_CUST_NUMBER =
FCR.V_CUST_NUMBER
JOIN VW_APPLN_PARAMS P ON P.V_PARAM_IDENTIFIER = 'KYC_PROCESSING_DATE'
AND P.V_PARAM_CATEGORY = 'KYC'
AND FCR.D_RELATIONSHIP_EXPIRY_DATE >=
P.D_PARAM_DATE
JOIN DIM_JURISDICTION ON DIM_JURISDICTION.N_JURISDICTION_KEY =
P.N_CNTRY_KEY
AND DIM_JURISDICTION.V_JURISDICTION_CODE =
FCU.V_SRC_CNTRY_CODE
MINUS
SELECT DISTINCT FCU.V_SRC_CNTRY_CODE JRSDCN_CD,
FCU.V_CUST_NUMBER v_cust_id,
FACRS.V_CUST_NUMBER v_ip_cust_id,
'N'
FROM VW_CUST_BUS_REQ FCU
JOIN VW_CUST_ACCT_BUS_REQ FACR ON FCU.V_CUST_NUMBER =
FACR.V_CUST_NUMBER
JOIN VW_CUST_ACCT_BUS_REQ FACRS ON FACR.V_ACCT_NUMBER =
FACRS.V_ACCT_NUMBER
JOIN DIM_ACCT_CUST_ROLE_TYPE ROLS ON ROLS.V_ACCT_CUST_ROLE_CODE =
FACRS.V_ACCT_CUST_ROLE_CODE
AND ROLS.F_CONTROLLING_ROLE = 'Y'
UNION
(SELECT FCU.V_SRC_CNTRY_CODE JRSDCN_CD,
FCU.V_CUST_NUMBER v_cust_id,
FCR.V_CUST_NUMBER v_ip_cust_id,
'N' f_cntrl_role
FROM VW_CUST_BUS_REQ FCU
JOIN VW_CUST_CUST_BUS_REQ FCR ON FCU.V_CUST_NUMBER =
FCR.V_RELATED_CUST_NUMBER
JOIN VW_APPLN_PARAMS P ON P.V_PARAM_IDENTIFIER = 'KYC_PROCESSING_DATE'
AND P.V_PARAM_CATEGORY = 'KYC'
AND FCR.D_RELATIONSHIP_EXPIRY_DATE >=
P.D_PARAM_DATE
JOIN DIM_JURISDICTION ON DIM_JURISDICTION.V_JURISDICTION_CODE =
FCU.V_SRC_CNTRY_CODE
AND DIM_JURISDICTION.N_JURISDICTION_KEY =
P.N_CNTRY_KEY
MINUS
SELECT DISTINCT FCU.V_SRC_CNTRY_CODE JRSDCN_CD,
FCU.V_CUST_NUMBER v_cust_id,
FACRS.V_CUST_NUMBER v_ip_cust_id,
'N'
FROM VW_CUST_BUS_REQ FCU
JOIN VW_CUST_ACCT_BUS_REQ FACR ON FCU.V_CUST_NUMBER =
FACR.V_CUST_NUMBER
JOIN VW_CUST_ACCT_BUS_REQ FACRS ON FACR.V_ACCT_NUMBER =
FACRS.V_ACCT_NUMBER
JOIN DIM_ACCT_CUST_ROLE_TYPE ROLS ON ROLS.V_ACCT_CUST_ROLE_CODE =
FACRS.V_ACCT_CUST_ROLE_CODE
AND ROLS.F_CONTROLLING_ROLE = 'Y'
Kindlt advice me on technical side , i think it is difficult to make you understand functionality. -
Exporting and importing just table definitions
Hi,
I have this production database that has a huge amount of data in it. I was asked to set up a test database based on the exact same schema as the live database. When I tried to do an export (from live) and import (to test), with the parameters rows=N and compress=y, the target (test database) data file will still grow enormously, presumably because of the huge number of extents already allocated to the table in the live database. My test database of course, has a limited hard-disk space.
Is there a way to export and import the table definitions without having the target database experiencing a huge growth in the size of the tablespace?
Thanks,
Chris.If an export with compress=n is still creating initial extents that a too large, you can still build with the import file but it will take a little work.
run imp with indexfile=somefile.sql
when imp is finished, edit somefile.sql by:
1. remove all the REM statements.
2. remove all the storage clauses (tables and indexes)
Make sure your tablespaces have a small (say 1k) default initial extent.
run imp again with rows=n
All your tables and indexes will be created with the default tablespace initial extent. -
How can I automatically create calendar events using text from a Pages document?
Hello,
I'm looking for a way that I can automatically have calendar events created, by extracting dates and times from a table within a Pages document I have saved on my Mac.
Currently, I record my working hours/dates on a Pages document in table format, so that I can record and ensure I receive payment for all hours I work.
After finding out which shifts I have for the week, I insert the day, date, start time and end time (for each shift), into a table within a Pages document.
I'm wondering if there is any way - such as through Automator, Apple Scripts, etc. - that I can then have the Calendar app automatically create events from that data - including the date, start and end times for each shift?
Also, if possible, is there a way to set each event to automatically alert me at a chosen time (1 day, 2 days, etc.) beforehand?
Here is an example of the layout of my document table:
Date
Start
Finish
Duration
Saturday, 21 December 2013
8:00 AM
5:00 PM
9:00 hrs
Sunday, 22 December 2013
9:00 AM
6:00 PM
9:00 hrs
Monday, 23 December 2013
12:00 PM
9:00 PM
9:00 hrs
Tuesday, 24 December 2013
12:00 PM
6:00 PM
6:00 hrs
If anyone can help with this question, that would be greatly appreaciated, as then I could have my calendar automatically create and sync my work shifts across to my iPhone, iPad and Mac.
Thanks in advance,
John.I totally agree with you.
Where are the fixes for a long string of bugs, glitches and user issues?
Looking at the list of new "features" for the next OSX, Maverick (what a dumb name!), all I am seeing is Apple ripping off other peoples' ideas, something it swinges others mercilessly for.
There is not one thing in Maverick that I don't already have, only more so, with 3rd party add-ons.
Apple seems bereft of ideas now and I am totally mystified what it is doing with all that money and employees it has accumulated.
Peter -
How to create index not unique at the time of the CREATE TABLE
Hi,
I am trying to find out how in Oracle create secondary indexes that can accept duplicated into the CREATE TABLE statement, without have to execute a CREATE INDEX separately.
As far I can see the only syntax accepted by Oracle 9i to create more than one index at the time of the table creation is:
CREATE TABLE test_tab (x INTEGER, y INTEGER, z INTEGER PRIMARY KEY(x,y), UNIQUE(z))
But, in my case I need to have the unicity only for the primary key, but not for the second index, that I would like to have not unique.
How to do that inside of the CREATE TABLE statement?
Any help?
Thanks a lot in advance.To create an index automatically (not constraint related) , you will need to have an 'event' trigger on the schema that will (IE: detecting a table create/drop matching ARCHIVE_%) , generate the appropriate SQL required (create index sql) and pass THAT to a DBMS_JOB.
Make sure you have job queue's enabled.
This was the ONLY way that I could re-create a view automatically as new tables were created that matched a criteria IE ARCHIVE_JAN06, ARCHIVE_FEB06 etc.
The application's "archiving" method created and was thus aware of these tables and permitted searching within 'archived' data, but 3rd party reporting applications needed to see a view encompassing all data, regardless of the tables involved. The view automatically created was a 'union_all' of all tables concerned. -
Error while creating table with clusters
Hi
I tried the following
CREATE CLUSTER emp_dept (deptno NUMBER(3))Cluster is created
Then i tried to create the table having the above cluster but giving the errors:
create table emp10 (ename char(5),deptno number(2) )cluster emp_dept(deptno);The error is:
ORA-01753 column definition incompatible with clustered column definitionCould you please help me in thisYour cluster is based on a NUMBER(3) data type while the emp10 table has a deptno column with a data type of NUMBER(2).
-
Error while creating tables in schema since trigger already enabled
Hi All,
I am trying to insert newly created objects in userA,but am not able to insert "ora_dict_obj_type" type value in target table,
Please see my error and script below:
Error:
Error report:
SQL Error: ORA-00604: error occurred at recursive SQL level 1
ORA-01858: a non-numeric character was found where a numeric was expected
ORA-06512: at line 2
00604. 00000 - "error occurred at recursive SQL level %s"
*Cause: An error occurred while processing a recursive SQL statement
(a statement applying to internal dictionary tables).
*Action: If the situation described in the next error on the stack
can be corrected, do so; otherwise contact Oracle Support.
Script:I need to insert newly created objects into this table,here Object type is important because based object type i am going to create one more trigger to grant access automatically to other users using trigger.
create table access_table
(owner_name varchar2(30),
object_name varchar2(30),
object_type varchar2(30),
created_time timestamp default current_timestamp);
create or replace
trigger access_trigger
after create on schema
begin
insert into access_table values
(ora_dict_obj_owner,
ora_dict_obj_name,
ora_dict_obj_type,
current_timestamp);
end access_trigger;
Thanks
Edited by: 983419 on Feb 9, 2013 7:20 AMinsert into access_table values
(ora_dict_obj_owner, --VARCHAR(30)
ora_dict_obj_name, --VARCHAR(30)
ora_dict_obj_type, --VARCHAR(20)
current_timestamp --"TIMESTAMP WITH TIME ZONE"
);The Oracle CURRENT_TIMESTAMP function will give you the current time with all details. It returns the current timestamp with time zone for the current session's time zone.
--example
SQL> select CURRENT_TIMESTAMP from dual;
CURRENT_TIMESTAMP
09-FEB-13 02.53.33.753000 PM 03:00You are inserting 'CURRENT_TIMESTAMP' ( TIMESTAMP WITH TIME ZONE datatype ) into the column with TIMESTAMP datatype.So what?? Can you please do some workout on what you said and post it here?
Try this:
create table access_table
(owner_name varchar2(30),
object_name varchar2(30),
object_type varchar2(30),
created_time TIMESTAMP WITH TIME ZONE default CURRENT_TIMESTAMP);
NO NEED.
Check this -
ranit@XE11GR2>> create table access_table
2 (owner_name varchar2(30),
3 object_name varchar2(30),
4 object_type varchar2(30),
5 created_time timestamp default current_timestamp);
Table created.
Elapsed: 00:00:00.07
ranit@XE11GR2>> insert into access_table(owner_name,object_name,object_type,created_time)
2 values('rr','bb','xx',current_timestamp); -- "CURRENT_TIMESTAMP with TIME ZONE inserted"
1 row created.
Elapsed: 00:00:00.00
ranit@XE11GR2>> insert into access_table(owner_name,object_name,object_type)
2 values('rr2','bb2','xx2');
1 row created.
Elapsed: 00:00:00.01
ranit@XE11GR2>> select *
2 from access_table;
OWNER_NAME OBJECT_NAME OBJECT_TYPE CREATED_TIME
rr bb xx 09-FEB-13 01.47.56.490000 PM
rr2 bb2 xx2 09-FEB-13 01.48.20.187000 PM
Elapsed: 00:00:00.01Edited by: ranit B on Feb 10, 2013 3:20 AM
-- code added
Maybe you are looking for
-
I receive unexpected server errors
You're not alone, I have a similar issue and I'm being unable to download any app from the downloads section. I get this message:
-
I had iMessage with a UK number and I have moved to Australia and want to use an Australian number, how can I change it over?
-
Hi All, For the below code i am getting error. any alternate way to resolve this issue. *WHEN P_ACCT *IS "EXTSALES", "ICSALES" *REC(FACTOR=1.5,P_ACCT="UPSIDEFACTOR") *ENDWHEN *COMMIT Error LINE:3 multi-member specified for dimension "3" *IS How to re
-
how do I remove a picture on my desktop
-
1.2.3 - bugs within iOS 8
(iPhone 5S 64 GB) My current list of bugs are: 1. Notifications freezing once touched, especially whatsapp but it happens sporadically, I would have to press the home button for the notification to slide back up. 2. Does not mirror properly with Appl