oracle12c

Unable to initialize point cloud - ORA-13249: Error creating dml trigger

冷暖自知 提交于 2021-01-28 15:59:12
问题 I'm unable to initialize point cloud in Oracle Database 12c. Trying to execute following commands: CREATE TABLE point_clouds( id NUMBER, capture_ts TIMESTAMP, point_cloud SDO_PC ); CREATE TABLE pc_blocks AS select * from mdsys.sdo_pc_blk_table; INSERT INTO point_clouds (id, point_cloud) VALUES ( 1001, sdo_pc_pkg.init( basetable => 'point_clouds', basecol => 'point_cloud', blktable => 'pc_blocks', ptn_params => 'blk_capacity=10000', pc_extent => mdsys.sdo_geometry( 2003, 8307, null, mdsys.sdo

Oracle not able to insert data into varchar2(4000 char) column

♀尐吖头ヾ 提交于 2021-01-28 06:00:54
问题 I use Oracle 12c. I have below table in my DB. CREATE TABLE TEST_T (COL VARCHAR2(4000 CHAR)); I need insert multibyte characters in this table. The character is 3 byte character. I am able to insert only 1333 (upto 3999 bytes) characters in table. My expectation is to insert upto 1500 multibyte characters but I get ORA - 01461 . I don't want to change data type to CLOB or LONG. Is there any way to use VARCHAR2(4000 CHAR) to achieve this. Below is the code, SET SERVEROUTPUT ON DECLARE LV_VAR

Oracle get id of inserted row with identity always [duplicate]

孤街浪徒 提交于 2021-01-04 04:23:17
问题 This question already has answers here : Inserting into Oracle and retrieving the generated sequence ID (5 answers) Closed 2 years ago . Currently I have a table with this structure: CREATE TABLE "DUMMY_SCHEMA"."NAMES" ( "ID" NUMBER(10,0) GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1 CACHE 20) NOT NULL , "NAME" NVARCHAR2(1024) NOT NULL , CONSTRAINT "NAMES_PK" PRIMARY KEY ("ID") ); In SQL Server I only need to do following to get the Id of the inserted row. INSERT INTO [NAMES](

Oracle get id of inserted row with identity always [duplicate]

江枫思渺然 提交于 2021-01-04 04:22:16
问题 This question already has answers here : Inserting into Oracle and retrieving the generated sequence ID (5 answers) Closed 2 years ago . Currently I have a table with this structure: CREATE TABLE "DUMMY_SCHEMA"."NAMES" ( "ID" NUMBER(10,0) GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1 CACHE 20) NOT NULL , "NAME" NVARCHAR2(1024) NOT NULL , CONSTRAINT "NAMES_PK" PRIMARY KEY ("ID") ); In SQL Server I only need to do following to get the Id of the inserted row. INSERT INTO [NAMES](

Oracle get id of inserted row with identity always [duplicate]

守給你的承諾、 提交于 2021-01-04 04:22:13
问题 This question already has answers here : Inserting into Oracle and retrieving the generated sequence ID (5 answers) Closed 2 years ago . Currently I have a table with this structure: CREATE TABLE "DUMMY_SCHEMA"."NAMES" ( "ID" NUMBER(10,0) GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1 CACHE 20) NOT NULL , "NAME" NVARCHAR2(1024) NOT NULL , CONSTRAINT "NAMES_PK" PRIMARY KEY ("ID") ); In SQL Server I only need to do following to get the Id of the inserted row. INSERT INTO [NAMES](

Oracle get id of inserted row with identity always [duplicate]

梦想与她 提交于 2021-01-04 04:21:58
问题 This question already has answers here : Inserting into Oracle and retrieving the generated sequence ID (5 answers) Closed 2 years ago . Currently I have a table with this structure: CREATE TABLE "DUMMY_SCHEMA"."NAMES" ( "ID" NUMBER(10,0) GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1 CACHE 20) NOT NULL , "NAME" NVARCHAR2(1024) NOT NULL , CONSTRAINT "NAMES_PK" PRIMARY KEY ("ID") ); In SQL Server I only need to do following to get the Id of the inserted row. INSERT INTO [NAMES](

Oracle get id of inserted row with identity always [duplicate]

佐手、 提交于 2021-01-04 04:16:43
问题 This question already has answers here : Inserting into Oracle and retrieving the generated sequence ID (5 answers) Closed 2 years ago . Currently I have a table with this structure: CREATE TABLE "DUMMY_SCHEMA"."NAMES" ( "ID" NUMBER(10,0) GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1 CACHE 20) NOT NULL , "NAME" NVARCHAR2(1024) NOT NULL , CONSTRAINT "NAMES_PK" PRIMARY KEY ("ID") ); In SQL Server I only need to do following to get the Id of the inserted row. INSERT INTO [NAMES](

Oracle get id of inserted row with identity always [duplicate]

瘦欲@ 提交于 2021-01-04 04:16:10
问题 This question already has answers here : Inserting into Oracle and retrieving the generated sequence ID (5 answers) Closed 2 years ago . Currently I have a table with this structure: CREATE TABLE "DUMMY_SCHEMA"."NAMES" ( "ID" NUMBER(10,0) GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1 CACHE 20) NOT NULL , "NAME" NVARCHAR2(1024) NOT NULL , CONSTRAINT "NAMES_PK" PRIMARY KEY ("ID") ); In SQL Server I only need to do following to get the Id of the inserted row. INSERT INTO [NAMES](

Select workorders (via parameters) and their children

百般思念 提交于 2020-12-27 06:43:24
问题 I have a Oracle 12c query that will eventually be used in a BIRT report (in IBM's Maximo Asset Management platform). The query/report will retrieve records as follows: Retrieve workorders based on the parameters that were selected by the user. All of the parameters are optional. For testing purposes, I'm using bind variables as parameters (in Toad for Oracle). It doesn't matter if the workorders are parents, children, or neither. Of the workorders that were retrieved, also select any children