Import data to Oracle database when to deploy a CRS using CIM, error!
Hi all
I followed the instructions on this page, http://IAM-saminda.blogspot.com/2013/06/Oracle-ecommerce-ATG-102.htmland the CIM console show success when I create the schema and import the data to the Server publication, but when I open the log of the CIM, and show me the following error:
WARNING Tue Aug 08 22:43:40 COT 2014 1404877420288/atg/dynamo/dbsetup/database/DatabaseOperationManager Ignoring SQLException when running
WARNING Tue Aug 08 22:43:40 COT 2014 1404877420288/atg/dynamo/dbsetup/database/DatabaseOperationManager ' create table (srch_site_cntnt_pri)
WARNING Tue Aug 08 22:43:40 COT 2014 1404877420288/atg/dynamo/dbsetup/database/DatabaseOperationManager asset_version number (19) not null,
WARNING Tue Aug 08 22:43:40 COT 2014 1404877420288/atg/dynamo/dbsetup/database/DatabaseOperationManager workspace_id varchar2 (40) not null,
WARNING Tue Aug 08 22:43:40 COT 2014 1404877420288/atg/dynamo/dbsetup/database/DatabaseOperationManager varchar2 (40) branch_id not null,.
WARNING Tue Aug 08 22:43:40 COT 2014 1404877420288/atg/dynamo/dbsetup/database/DatabaseOperationManager is_head number (1) not null,
WARNING Tue Aug 08 22:43:40 COT 2014 1404877420288/atg/dynamo/dbsetup/database/DatabaseOperationManager version_deleted number (1) not null,
WARNING Tue Aug 08 22:43:40 COT 2014 1404877420288/atg/dynamo/dbsetup/database/DatabaseOperationManager version_editable number (1) not null,
WARNING Tue Aug 08 22:43:40 COT 2014 1404877420288/atg/dynamo/dbsetup/database/DatabaseOperationManager pred_version number (19) null,
WARNING Tue Aug 08 22:43:40 COT 2014 1404877420288/atg/dynamo/dbsetup/database/DatabaseOperationManager checkin_date timestamp null,.
WARNING Tue Aug 08 22:43:40 COT 2014 1404877420288/atg/dynamo/dbsetup/database/DatabaseOperationManager id varchar2 (40) not null,
WARNING Tue Aug 08 22:43:40 COT 2014 1404877420288/atg/dynamo/dbsetup/database/DatabaseOperationManager varchar2 (40) content_id not null
WARNING kills Jul 08 22:43:40 1404877420288 2014 COT/atg/dynamo/dbsetup/database/DatabaseOperationManager, primary key constraint srch_site_cntnt_pp (id, asset_version))'
WARNING Tue Aug 08 22:43:40 COT 2014 1404877420288/atg/dynamo/dbsetup/database/DatabaseOperationManager java.sql.SQLSyntaxErrorException: ORA-00955: name is already used by an existing object
WARNING Tue Aug 08 22:43:40 COT 2014 1404877420288/atg/dynamo/dbsetup/database/DatabaseOperationManager
WARNING Tue Aug 08 22:43:40 COT 2014 1404877420288/atg/dynamo/dbsetup/database/DatabaseOperationManager to oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:445)
If anyone can help me, I'd really appreciate
Best regards!
I solved the problem, the regional settings Windows My was "es" for Spanish, and when I mentioned on the CIM, that my locale was 'en', and English, the CIM cannot match the formats and that's why show me this error. Just indicate on the CIM from the local right or just use an English version of your S.O. XD
Roger
Tags: Oracle Applications
Similar Questions
-
Problem importing data in Oracle 10 G
I have had every schema s successfully imported in oracle 10G. Then, import the data also. But I can't find any of the imported data, there are still a few tables which is missing data.
Error:-ORA 1917; problem with table constraints.
Please suggest... should I have to disable the before importing the data?Vijay kr wrote:
Error:-"the parent key does not exist.
Due has an idea about this?Yes.
It seems that you import tables parent when there are primary keys (parent keys) for the table/s for which you are trying to activate the key foreign/s. -
Can I import data from a database in a FrameMaker using ExtendScript document?
I want to import the part of database information in a structured document in FrameMaker (XML). The document would be an illustrated parts catalog, built by merging the text in the document structured with Bill of material stored in a database and graphic files. ExtendScript for this, or do I have to study a different language for this programmatic approach to the construction of a document?
There is no direct way to connect to a database with FrameMaker ExtendScript. It is possible to write code C++ to interact with scripts, so you could write some kind of connector in C++ that would work with ExtendScript. ExtendScript can work with XML files, then another solution is to export the data from the database in XML format and ExtendScript allows you to analyze and import it into FrameMaker.
I'd take a serious look at FrameScript. FrameScript has built-in ODBC support, you can connect directly to your database and use SQL queries to get your data into FrameMaker. There also ActiveX is supported, so you can use ADODB technology to get data from your database. I did the import of the database in a bunch of my scripts over the years. Please let me know if you have any questions or comments. -Rick
-
Importing data into Oracle Apex
Hello
I have an obligation to provide a screen to the user where they can import excel data to an existing table and I saw a feature in the workshop of data in Oracle Apex, but I can't use that since I have extra things added into that must. The requirment is mentioned below,
(1) need a screen where the user can select the excel file and start the import of a temporary table without validation
(2) the data from the temporary table must be visible to the format of form Multi line in the screen and the user must be able to modify the data
(3) the need for a feature or a screen mapping where the user can map the temporary table to the original table column before you pass data to the original (as data) table
(4) the data should be transferred in the original table and the respective data should be deleted from the temporary table (in case if an error occurs, error record must appear in a temporary table up to less than the user of the corrected data into the original table)
(5) need to add different types of validation, update the record in the original record if same id is available or insert a record value, non-zero, etc...
Please suggest me how can I do this in the Apex.
Is it possible to use the existing data and design workshop robot code in my new screen?You will probably have to code this yourself... There are packages that have been written to import Excel and CSV style...
Here's a blog entry to make the upload of Excel file: http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
Once you call who you might have a tabular layout displays the data to the user...
Other processes must be written by you (migration of data from the temporary table to the table of live data...
Thank you
Tony Miller
Webster, TXOn the road of life... He has "windshield", and there are "bugs".
(splat!)
"Squeegees wanted." -
Oracle Database 11g (11.1.0.6.0)
I create a new Oracle 11 g database in our development environment. This is my first time installing an 11g database. During the installation process, the Configuration Wizard of database window appears and "Copy database files" are Ringing and the creation of database of current Clone is 2%, when I get the following error in the Configuration Wizard of database:
ORA-00119: invalid specification for the system LOCAL_LISTENEr parameter
ORA-00132: error syntax or network name not resolved "LISTENER_DEVTEST1."
ORA-01078: failure in the treatment of system settings
Search Info
===============================================
* $ listener.ora* more
listener.ora # Network Configuration file: /u002/dbsvr/oratst/11.1/network/admin
Listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1524))
(ADDRESS = (PROTOCOL = TCP (PORT = 1524))(HOST = dallinux02.clubcorp.com))
)
)
===============================================
* $ tnsnames.ora* more
tnsnames.ora # Network Configuration file: /u002/dbsvr/oratst/11.1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
LISTENER_DEVTEST1 =
(ADDRESS = (PROTOCOL = TCP (PORT = 1524))(HOST = dallinux02.clubcorp.com))
===============================================
* lsnrctl status $ *.
LSNRCTL for Linux: Version 11.1.0.6.0 - Production on March 11, 2009 14:11:44
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1524)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.1.0.6.0 - Production
Start date March 11, 2009 14:04:06
Uptime 0 days 0 h 7 min 37 s
Draw level off
Security ON: OS Local Authentication
SNMP OFF
Parameter Listener of the /u002/dbsvr/oratst/11.1/network/admin/listener.ora file
The listener log file /U002/dbsvr/oratst/diag/tnslsnr/dallinux02/listener/alert/log.XML
Summary of endpoints listening...
(DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1524)))
(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp (PORT = 1524))(HOST=dallinux02.clubcorp.com)))
The listener supports no services
The command completed successfully
================================================
1524 port is not used by another database.Hello
You must install the oracle first software and then run DBCA. Once you have installed the oracle software, you can only listener of Crete using netca. Check your init.ora file (must be placed under)
C: >$ ORACLE_HOME/database / dbs or $ORACLE_HOME/dbs and local for the following LOCAL_LISTENER parameter and remove. But I recommend you to install the oracle software only first, then run DBCA.What is your operating system? Is - this vista? XP?
Concerning
-
database stress test - datagenerator problem with import data from oracle
Hi all
Today, I'm doing a stress test on my new server. Someone from this forum told me that there is a nice software for it:
http://www.dominicgiles.com
I have a problem with Datagenerator. I can't fill my user directly in the database. DataGenerator always has an exception. What ever...
I tried to generate data on hard drive. It seems to go well. In the file data, I found a large number of files:
*.dat
*. CTL
*. SQL
N, anyone know how I can import only the files of user oracle?
see you soon
DlugasxI do the table drop in the first place, I think it's to be sure, there are no objects before loading.
Nicolas.
-
Dates for "Oracle Database 11g: Performance Tuning" exam
Hello!
Today Oracle posted the info on the new database Oracle 11 g Performance Tuning review required for new certification expertise:
http://education.Oracle.com/pls/web_prod-PLQ-dad/db_pages.GetPage?page_id=41 & p_exam_id = 1Z0_054 #2
It is said that pre-registration for the beta version review starts today, however, it does not say when the phase beta begins and ends. Anyone know?
Thank you
MarcusMarch 31, 2009 is the current provisional end date for the exam in beta 1Z1-054. This date is subject to change.
Kind regards
Brandye Barrington
Certification Forum Moderator
Manager certification program -
Write a batch script to import data in a database of DRM *.
Hello
I'm having a problem writing a batch script
to import into DRM from an external database.
This is the script I wrote:
[General]
Username = myusername
Password = mypassword
URL = net .tcp://usphl0mdma1: 5210, Oracle, Drm, ProcessManager
Operation = import
[Import]
Operation = import
InFile = TEST
ImportLogFileName = "Importlog.log"
AutoSave = Yes
Can someone please tell me if I'm doing something wrong, and the best course of action will be highly appreciated.
Note: it is on DRM 11.1.2.3
Published by: 1010031 on June 5, 2013 09:43First, are you able to import from a DB table manually?, if it does not.
Then I think the issue is around "InFile = TEST", I do not quite see documentation around batch import of a DB Table.
Murali-
-
Recover data file / oracle database duplicate offers backup
Hello.
I have regular backups of all data files (copy of the image) and created by oracle archivelogs suggested backup.
I want to recover the database to a specific day, and not to the last transaction, on the last day of backup was performed.
So far I've always had the last transaction recovery with isn't an option because a large amount of data is missing, and I don't know what happened, I just know that that day there before (last image retrieved copy) is very well, but I'm unable to recover at this point. I used recover until sequence, up to the time, but I have always applied the newspaper.
So my question is, can I restore the data file and retrieve it, I mean sync with the database without appling archivelogs to keep the data in this file, as it was the day of the last backup, or use this image copy to create another database to get the same things, or is there another way to get data as it was on the last day backup was taken.
Any help is appreciated, the situation is very serious!Hi user12091398,
Furthermore, it just ask, pourrais I try to use blockrecover to copy good image perhaps?
With recovery of block, you will have to make a full recovery, it is of no use.
Steps for cloning:
-create an auxiliary environment (instance, space...) db_file_name_convert and log_file_name_convert parameters can be useful.
-make elements of rman backup available on the host running the auxiliary.
-set up tns to be able to access the target host of the auxiliary.
-create and run a script in double
Run {}
define_db_name duplicate target database
# up to "TO_DATE('2010-01-28:10:00:00','yyyy-mm-dd:hh24:mi:ss')".
up to the time "TO_DATE('define_date','yyyy-mm-dd:hh24:mi:ss')".
;
}Kind regards
Tycho
-
Error with PL/SQL procedure to import data into the database
When you run the procedure below, I get the message:
Compilation failure, line 448
PLS-00103: encountered the symbol "LOOP" when expecting one of the following values: case of the symbol "case" was substituted for the "LOOP" continue. Compilation failure, line 450
PLS-00103: encountered the symbol ";" when expecting one of the following values: case
Can someone help me understand what im missing? Thank you
Deanna
CREATE OR REPLACE PROCEDURE PURSUITS.IMPORT_LEGACY_PURSUIT IS CURSOR DATA_CURSOR IS SELECT * FROM PURSUITS.IMPORT_LEGACY_PURSUIT; CR DATA_CURSOR%ROWTYPE; V_PURSUIT_DATE DATE; V_ROADWAY_TYPE VARCHAR2(5); V_TRAFFIC_FLOW VARCHAR2(8); V_REASON_FOR_INITIATION VARCHAR2(6); V_VEHICLE_MARKING VARCHAR2(8); V_VEHICLE_LIGHTS_ON VARCHAR2(1); V_VEHICLE_SIREN_ON VARCHAR2(1); V_AIRCRAFT_AVAILABLE VARCHAR2(1); V_AIRCRAFT_INVOLVED VARCHAR2(1); V_OTHER_AGENCY_INVOLVED VARCHAR2(1); V_OTHER_AGENCY_STATUS VARCHAR2(8); V_OTHER_AGENCY_COUNT NUMBER(2,0); V_SUSPECT_VEHICLE_TYPE VARCHAR2(2); V_SUSPECT_RACE VARCHAR2(1); V_SUSPECT_ETHNICITY VARCHAR2(1); V_SUSPECT_ID_KNOWN VARCHAR2(1); V_SUSPECT_POSSESS_WEAPON VARCHAR2(1); V_REASON_FOR_TERMINATION VARCHAR2(6); V_REASON_FOR_FLIGHT VARCHAR2(6); V_ACCIDENT VARCHAR2(1); V_ACCIDENT_TYPE VARCHAR2(8); V_ACCIDENT_PARTIES_INVOLVED VARCHAR2(8); V_CASE_COUNT NUMBER; BEGIN OPEN DATA_CURSOR; LOOP FETCH DATA_CURSOR INTO CR; EXIT WHEN DATA_CURSOR%NOTFOUND; --PURSUIT DATE -- IF CR.PURSUIT_DATE = 0 THEN -- V_PURSUIT_DATE :=NULL; -- ELSE -- V_PURSUIT_DATE :=TO_DATE(CR.PURSUIT_DATE,CONCAT('MONTH'/'DAY'/'YEAR'); -- END IF; --ROADWAY TYPE CASE WHEN CR.ROADWAY = 1 THEN V_ROADWAY_TYPE := 'URBAN'; WHEN CR.ROADWAY = 2 THEN V_ROADWAY_TYPE := 'RURAL'; ELSE V_ROADWAY_TYPE := NULL; END CASE; --TRAFFIC FLOW CASE WHEN CR.TRAFFICFLO = 1 THEN V_TRAFFIC_FLOW := 'LIGHT'; WHEN CR.TRAFFICFLO = 2 THEN V_TRAFFIC_FLOW := 'MODERATE'; WHEN CR.TRAFFICFLO = 3 THEN V_TRAFFIC_FLOW := 'HIGH'; ELSE V_TRAFFIC_FLOW := NULL; END_CASE; --INITIATION CODES CASE WHEN CR.INITREASON = 1 THEN V_REASON_FOR_INITIATION := 'SUSACT'; WHEN CR.INITREASON = 2 THEN V_REASON_FOR_INITIATION := 'TRAFVI'; WHEN CR.INITREASON = 3 THEN V_REASON_FOR_INITIATION := 'MISCCR'; WHEN CR.INITREASON = 4 THEN V_REASON_FOR_INITIATION := 'FELONY'; WHEN CR.INITREASON = 5 THEN V_REASON_FOR_INITIATION := 'DUIARR'; WHEN CR.INITREASON = 6 THEN V_REASON_FOR_INITIATION := 'NCICHT'; WHEN CR.INITREASON = 7 THEN V_REASON_FOR_INITIATION := 'OTHERR'; ELSE V_REASON_FOR_INITIATION := NULL; END_CASE; --VEHICLE MARKING CASE WHEN CR.CARMARKS = 1 THEN V_VEHICLE_MARKING := 'MRKLIGHT'; WHEN CR.CARMARKS = 2 THEN V_VEHICLE_MARKING := 'MRKCLEAN'; WHEN CR.CARMARKS = 3 THEN V_VEHICLE_MARKING := 'UNMARKED'; ELSE V_VEHICLE_MARKING := NULL; END CASE; --LIGHTS CASE WHEN CR.LIGHTS_ON = 1 THEN V_VEHICLE_LIGHTS_ON := 'Y'; WHEN CR.LIGHTS_ON = 2 THEN V_VEHICLE_LIGHTS_ON := 'N'; ELSE V_VEHICLE_LIGHTS_ON := NULL; END CASE; --SIREN CASE WHEN CR.SIREN_ON = 1 THEN V_VEHICLE_SIREN_ON := 'Y'; WHEN CR.SIREN_ON = 2 THEN V_VEHICLE_SIREN_ON := 'N'; ELSE V_VEHICLE_SIREN_ON := NULL; END CASE; --AIRCRAFT AVAILABLE CASE WHEN CR.AIRCRAFTAV = 1 THEN V_AIRCRAFT_AVAILABLE := 'Y'; WHEN CR.AIRCRAFTAV = 2 THEN V_AIRCRAFT_AVAILABLE := 'N'; WHEN CR.AIRCRAFTAV = 3 THEN V_AIRCRAFT_AVAILABLE := 'U'; ELSE V_AIRCRAFT_AVAILABLE := NULL; END CASE; --AIRCRAFT INVOLVED CASE WHEN CR.AIRCRAFTIN = 1 THEN V_AIRCRAFT_INVOLVED := 'Y'; WHEN CR.AIRCRAFTIN = 2 THEN V_AIRCRAFT_INVOLVED := 'N'; ELSE V_AIRCRAFT_INVOLVED := NULL; END CASE; --AGENCY INVOLVED CASE WHEN CR.OTHRAGENCY = 1 THEN V_OTHER_AGENCY_INVOLVED := 'Y'; WHEN CR.OTHRAGENCY = 2 THEN V_OTHER_AGENCY_INVOLVED := 'N'; ELSE V_OTHER_AGENCY_INVOLVED := NULL; END CASE; --AGENCY STATUS CASE WHEN CR.STATUS = 1 THEN V_OTHER_AGENCY_STATUS := 'INITIATE'; WHEN CR.STATUS = 2 THEN V_OTHER_AGENCY_STATUS := 'ASSISTED'; ELSE V_OTHER_AGENCY_STATUS := NULL; END CASE; --SUSPECT VEHICLE TYPE CASE WHEN CR.VEHICLETYP = 1 THEN V_SUSPECT_VEHICLE_TYPE := 'SD'; WHEN CR.VEHICLETYP = 2 THEN V_SUSPECT_VEHICLE_TYPE := 'MC'; WHEN CR.VEHICLETYP = 3 THEN V_SUSPECT_VEHICLE_TYPE := 'VN'; WHEN CR.VEHICLETYP = 4 THEN V_SUSPECT_VEHICLE_TYPE := 'PK'; WHEN CR.VEHICLETYP = 5 THEN V_SUSPECT_VEHICLE_TYPE := 'DS'; WHEN CR.VEHICLETYP = 6 THEN V_SUSPECT_VEHICLE_TYPE := 'OT'; ELSE V_SUSPECT_VEHICLE_TYPE := NULL; END CASE; --SUSPECT RACE AND ETHNICITY IF CR.RACE = 'H' THEN V_SUSPECT_RACE := 'W'; ELSE V_SUSPECT_RACE := CR.RACE; END IF; --SUSPECT ETHNICITY IF CR.RACE = 'H' THEN V_SUSPECT_ETHNICITY := 'H' ELSE V_SUSPECT_ETHNICITY := NULL; END IF; --SUSPECT ID CASE WHEN CR.ID_KNOWN = 1 THEN V_SUSPECT_ID_KNOWN := 'Y'; WHEN CR.ID_KNOWN = 2 THEN V_SUSPECT_ID_KNOWN := 'N'; ELSE V_SUSPECT_ID_KNOWN := NULL; END CASE; --SUSPECT WEAPON CASE WHEN CR.WEAPON = 1 THEN V_SUSPECT_POSSESS_WEAPON := 'Y'; WHEN CR.WEAPON = 2 THEN V_SUSPECT_POSSESS_WEAPON := 'N'; ELSE V_SUSPECT_POSSESS_WEAPON := NULL; END CASE; --TERMINATION REASON CASE WHEN CR.TERMREASON = 1 THEN V_REASON_FOR_TERMINATION := 'DVRVOL'; WHEN CR.TERMREASON = 2 THEN V_REASON_FOR_TERMINATION := 'ALATER'; WHEN CR.TERMREASON = 3 THEN V_REASON_FOR_TERMINATION := 'VEHDIS'; WHEN CR.TERMREASON = 4 THEN V_REASON_FOR_TERMINATION := 'VEHWRK'; WHEN CR.TERMREASON = 5 THEN V_REASON_FOR_TERMINATION := 'ROADBL'; WHEN CR.TERMREASON = 6 THEN V_REASON_FOR_TERMINATION := 'STOPST'; WHEN CR.TERMREASON = 7 THEN V_REASON_FOR_TERMINATION := 'RAMMED'; WHEN CR.TERMREASON = 8 THEN V_REASON_FOR_TERMINATION := 'WEAPON'; WHEN CR.TERMREASON = 9 THEN V_REASON_FOR_TERMINATION := 'DVRINJ'; WHEN CR.TERMREASON = 10 THEN V_REASON_FOR_TERMINATION := 'OFFTER'; WHEN CR.TERMREASON = 11 THEN V_REASON_FOR_TERMINATION := 'SUPTER'; WHEN CR.TERMREASON = 12 THEN V_REASON_FOR_TERMINATION := 'PATDIS'; WHEN CR.TERMREASON = 13 THEN V_REASON_FOR_TERMINATION := 'PATWRK'; WHEN CR.TERMREASON = 14 THEN V_REASON_FOR_TERMINATION := 'LOSTEM'; WHEN CR.TERMREASON = 15 THEN V_REASON_FOR_TERMINATION := 'FLEDAB'; WHEN CR.TERMREASON = 16 THEN V_REASON_FOR_TERMINATION := 'FLEDWK'; WHEN CR.TERMREASON = 17 THEN V_REASON_FOR_TERMINATION := 'OFFINJ'; WHEN CR.TERMREASON = 18 THEN V_REASON_FOR_TERMINATION := 'OTHAGY'; ELSE V_REASON_FOR_TERMINATION := NULL; END CASE; --FLIGHT REASON CASE WHEN CR.FLI_REASON = 1 THEN V_REASON_FOR_FLIGHT := 'SUMMON'; WHEN CR.FLI_REASON = 2 THEN V_REASON_FOR_FLIGHT := 'DUIARR'; WHEN CR.FLI_REASON = 3 THEN V_REASON_FOR_FLIGHT := 'FELONY'; WHEN CR.FLI_REASON = 4 THEN V_REASON_FOR_FLIGHT := 'STOLEN'; WHEN CR.FLI_REASON = 5 THEN V_REASON_FOR_FLIGHT := 'MISDEM'; WHEN CR.FLI_REASON = 6 THEN V_REASON_FOR_FLIGHT := 'DRUGAR'; WHEN CR.FLI_REASON = 7 THEN V_REASON_FOR_FLIGHT := 'FEARPO'; WHEN CR.FLI_REASON = 8 THEN V_REASON_FOR_FLIGHT := 'NODVRL'; WHEN CR.FLI_REASON = 9 THEN V_REASON_FOR_FLIGHT := 'NOINSU'; WHEN CR.FLI_REASON = 10 THEN V_REASON_FOR_FLIGHT := 'PARENT'; WHEN CR.FLI_REASON = 11 THEN V_REASON_FOR_FLIGHT := 'MENTAL'; WHEN CR.FLI_REASON = 12 THEN V_REASON_FOR_FLIGHT := 'OTHERR'; ELSE V_REASON_FOR_FLIGHT := NULL; END CASE; --ACCIDENT CASE WHEN CR.ACCIDENT = 1 THEN V_ACCIDENT := 'Y'; WHEN CR.ACCIDENT = 2 THEN V_ACCIDENT := 'N'; ELSE V_ACCIDENT := NULL; END CASE; --ACCIDENT TYPE CASE WHEN CR.ACCDNTTYPE = 1 THEN V_ACCIDENT_TYPE := 'PROPERTY DAMAGE'; WHEN CR.ACCDNTTYPE = 2 THEN V_ACCIDENT_TYPE := 'INJURY'; WHEN CR.ACCDNTTYPE = 3 THEN V_ACCIDENT_TYPE := 'FATALITY'; ELSE V_ACCIDENT_TYPE := NULL; END CASE; --ACCIDENT PARTIES INVOLVED CASE WHEN CR.ACCPARTIES = 1 THEN V_ACCIDENT_PARTIES_INVOLVED := 'SUSPONLY'; WHEN CR.ACCPARTIES = 2 THEN V_ACCIDENT_PARTIES_INVOLVED := 'THRDONLY'; WHEN CR.ACCPARTIES = 3 THEN V_ACCIDENT_PARTIES_INVOLVED := 'POLIONLY'; WHEN CR.ACCPARTIES = 4 THEN V_ACCIDENT_PARTIES_INVOLVED := 'POLISUSP'; WHEN CR.ACCPARTIES = 5 THEN V_ACCIDENT_PARTIES_INVOLVED := 'POLITHRD'; WHEN CR.ACCPARTIES = 6 THEN V_ACCIDENT_PARTIES_INVOLVED := 'SUSPTHRD'; WHEN CR.ACCPARTIES = 7 THEN V_ACCIDENT_PARTIES_INVOLVED := 'ALLPARTY'; ELSE V_ACCIDENT_PARTIES_INVOLVED := NULL; END CASE; SELECT COUNT(*) INTO V_CASE_COUNT FROM PURSUITS.IMPORT_LEGACY_PURSUIT WHERE CASE_NUMBER = CR.LOCCASENUM; CASE WHEN V_CASE_COUNT = 0 THEN DBMS_OUTPUT.PUT_LINE ('DONE'); --INSERT DATA INTO TABLE INSERT INTO PURSUITS.IMPORT_LEGACY_PURSUIT( CASE_NUMBER, OFFICER_LNAME, OFFICER_FNAME, OFFICER_MI, OFFICER_NAME_HP261, OFFICER_RADIO, OFFICER_VEH_UNIT, OFFICER_TROOP, OFFICER_ZONE, OFFICER_YEARS_SERVICE, PURSUIT_TIME_BEGAN, PURSUIT_DATE, PURSUIT_DOW, PURSUIT_TIME_ENDED, DURATION_MILES, DURATION_MINUTES, SPEED_MAX, ROADWAY_TYPE, TRAFFIC_FLOW, REASON_FOR_INITIATION, REASON_FOR_INITIATION_OTHER, VEHICLE_MARKING, VEHICLE_LIGHTS_ON, VEHICLE_SIREN_ON, VEHICLE_COUNT_MARKED_TOPLIGHT, VEHICLE_COUNT_UNMARKED, VEHICLE_COUNT_MARKED_CLEAN, AIRCRAFT_AVAILABLE, AIRCRAFT_INVOLVED, OTHER_AGENCY_INVOLVED, OTHER_AGENCY_STATUS, OTHER_AGENCY_COUNT, SUSPECT_VEHICLE_TYPE, SUSPECT_VEHICLE_TYPE_OTHER, SUSPECT_AGE, SUSPECT_GENDER, SUSPECT_RACE, SUSPECT_ETHNICITY, SUSPECT_ID_KNOWN, SUSPECT_POSSESS_WEAPON, SUSPECT_DUI, SUSPECT_BAC, REASON_FOR_TERMINATION, REASON_FOR_FLIGHT, REASON_FOR_FLIGHT_OTHER, ACCIDENT, ACCIDENT_TYPE, ACCIDENT_PARTIES_INVOLVED, IMMEDIATE_SUPERVISOR, TROOP_COMMANDER) VALUES( CR.LOCASENUM, NULL, NULL, NULL, CR.N/A, CR.RADIO_NUM, CR.UNIT_NUM, CR.TROOP, CR.ZONE, CR.YRSSERVICE, CR.TIMEBEGAN, V_PURSUIT_DATE, CR.DAYOFWEEK, CR.TIME_ENDED, CR.MILES, CR.MINUTES, CR.MPH, V_ROADWAY_TYPE, V_TRAFFIC_FLOW, V_REASON_FOR_INITIATION, CR.OTHER1, V_VEHICLE_MARKING, V_VEHICLE_LIGHTS_ON, V_VEHICLE_SIREN_ON, CR.MARKED_TL, CR.UNMARKED, CR.MARKED_CR, V_AIRCRAFT_AVAILABLE, V_AIRCRAFT_INVOLVED, V_OTHER_AGENCY_INVOLVED, V_AGENCY_STATUS, CR.NUM_VEH, V_SUSPECT_VEHICLE_TYPE, CR.OTHER2, CR.AGE, CR.SEX, V_SUSPECT_RACE, CR.N/A, V_SUSPECT_ID_KNOWN, V_SUSPECT_POSSESS_WEAPON, CR.DUI, CR.BAC_PERCNT, V_REASON_FOR_TERMINATION, V_REASON_FOR_FLIGHT, CR.OTHER3, V_ACCIDENT, V_ACCIDENT_TYPE, V_ACCIDENT_PARTIES_INVOLVED, NULL, NULL); END LOOP; CLOSE DATA_CURSOR; END;
Deanna,
Question, I don't understand why you're selecting in import_legacy_pursuit and insertion in the same table?
It would be wonderful if you can display the structure of the table and 1 or 2 fictitious example of records.
cursor cr is SELECT * FROM import_legacy_pursuit; ... ... INSERT INTO import_legacy_pursuit ( case_number, officer_lname, .... .. ) values (..... ...);
In any case, I made some changes to the procedure, you must replace the Insert with your statement and post if it worked for you.
DECLARE CURSOR data_cursor IS SELECT * FROM import_legacy_pursuit; cr data_cursor%ROWTYPE; v_pursuit_date DATE; v_roadway_type VARCHAR2 (15); v_traffic_flow VARCHAR2 (18); v_reason_for_initiation VARCHAR2 (16); v_vehicle_marking VARCHAR2 (18); v_vehicle_lights_on VARCHAR2 (11); v_vehicle_siren_on VARCHAR2 (11); v_aircraft_available VARCHAR2 (11); v_aircraft_involved VARCHAR2 (11); v_other_agency_involved VARCHAR2 (11); v_other_agency_status VARCHAR2 (18); v_other_agency_count NUMBER (4, 0); v_suspect_vehicle_type VARCHAR2 (20); v_suspect_race VARCHAR2 (11); v_suspect_ethnicity VARCHAR2 (11); v_suspect_id_known VARCHAR2 (11); v_suspect_possess_weapon VARCHAR2 (11); v_reason_for_termination VARCHAR2 (11); v_reason_for_flight VARCHAR2 (11); v_accident VARCHAR2 (11); v_accident_type VARCHAR2 (18); v_accident_parties_involved VARCHAR2 (18); v_lo_number VARCHAR2 (50); v_case_count NUMBER; BEGIN OPEN data_cursor; LOOP FETCH data_cursor INTO cr; EXIT WHEN data_cursor%NOTFOUND; --PURSUIT DATE -- IF CR.PURSUIT_DATE = 0 THEN -- V_PURSUIT_DATE :=NULL; -- ELSE -- V_PURSUIT_DATE :=TO_DATE(CR.PURSUIT_DATE,CONCAT('MONTH'/'DAY'/'YEAR'); -- END IF; --ROADWAY TYPE CASE WHEN cr.roadway = 1 THEN v_roadway_type := 'URBAN'; WHEN cr.roadway = 2 THEN v_roadway_type := 'RURAL'; ELSE v_roadway_type := NULL; END CASE; --TRAFFIC FLOW CASE WHEN cr.trafficflo = 1 THEN v_traffic_flow := 'LIGHT'; WHEN cr.trafficflo = 2 THEN v_traffic_flow := 'MODERATE'; WHEN cr.trafficflo = 3 THEN v_traffic_flow := 'HIGH'; ELSE v_traffic_flow := NULL; END CASE; --INITIATION CODES CASE WHEN cr.initreason = 1 THEN v_reason_for_initiation := 'SUSACT'; WHEN cr.initreason = 2 THEN v_reason_for_initiation := 'TRAFVI'; WHEN cr.initreason = 3 THEN v_reason_for_initiation := 'MISCCR'; WHEN cr.initreason = 4 THEN v_reason_for_initiation := 'FELONY'; WHEN cr.initreason = 5 THEN v_reason_for_initiation := 'DUIARR'; WHEN cr.initreason = 6 THEN v_reason_for_initiation := 'NCICHT'; WHEN cr.initreason = 7 THEN v_reason_for_initiation := 'OTHERR'; ELSE v_reason_for_initiation := NULL; END CASE; --VEHICLE MARKING CASE WHEN cr.carmarks = 1 THEN v_vehicle_marking := 'MRKLIGHT'; WHEN cr.carmarks = 2 THEN v_vehicle_marking := 'MRKCLEAN'; WHEN cr.carmarks = 3 THEN v_vehicle_marking := 'UNMARKED'; ELSE v_vehicle_marking := NULL; END CASE; --LIGHTS CASE WHEN cr.lights_on = 1 THEN v_vehicle_lights_on := 'Y'; WHEN cr.lights_on = 2 THEN v_vehicle_lights_on := 'N'; ELSE v_vehicle_lights_on := NULL; END CASE; --SIREN CASE WHEN cr.siren_on = 1 THEN v_vehicle_siren_on := 'Y'; WHEN cr.siren_on = 2 THEN v_vehicle_siren_on := 'N'; ELSE v_vehicle_siren_on := NULL; END CASE; --AIRCRAFT AVAILABLE CASE WHEN cr.aircraftav = 1 THEN v_aircraft_available := 'Y'; WHEN cr.aircraftav = 2 THEN v_aircraft_available := 'N'; WHEN cr.aircraftav = 3 THEN v_aircraft_available := 'U'; ELSE v_aircraft_available := NULL; END CASE; --AIRCRAFT INVOLVED CASE WHEN cr.aircraftin = 1 THEN v_aircraft_involved := 'Y'; WHEN cr.aircraftin = 2 THEN v_aircraft_involved := 'N'; ELSE v_aircraft_involved := NULL; END CASE; --AGENCY INVOLVED CASE WHEN cr.othragency = 1 THEN v_other_agency_involved := 'Y'; WHEN cr.othragency = 2 THEN v_other_agency_involved := 'N'; ELSE v_other_agency_involved := NULL; END CASE; --AGENCY STATUS CASE WHEN cr.status = 1 THEN v_other_agency_status := 'INITIATE'; WHEN cr.status = 2 THEN v_other_agency_status := 'ASSISTED'; ELSE v_other_agency_status := NULL; END CASE; --SUSPECT VEHICLE TYPE CASE WHEN cr.vehicletyp = 1 THEN v_suspect_vehicle_type := 'SD'; WHEN cr.vehicletyp = 2 THEN v_suspect_vehicle_type := 'MC'; WHEN cr.vehicletyp = 3 THEN v_suspect_vehicle_type := 'VN'; WHEN cr.vehicletyp = 4 THEN v_suspect_vehicle_type := 'PK'; WHEN cr.vehicletyp = 5 THEN v_suspect_vehicle_type := 'DS'; WHEN cr.vehicletyp = 6 THEN v_suspect_vehicle_type := 'OT'; ELSE v_suspect_vehicle_type := NULL; END CASE; --SUSPECT RACE AND ETHNICITY IF cr.race = 'H' THEN v_suspect_race := 'W'; ELSE v_suspect_race := cr.race; END IF; --SUSPECT ETHNICITY IF cr.race = 'H' THEN v_suspect_ethnicity := 'H'; ELSE v_suspect_ethnicity := NULL; END IF; --SUSPECT ID CASE WHEN cr.id_known = 1 THEN v_suspect_id_known := 'Y'; WHEN cr.id_known = 2 THEN v_suspect_id_known := 'N'; ELSE v_suspect_id_known := NULL; END CASE; --SUSPECT WEAPON CASE WHEN cr.weapon = 1 THEN v_suspect_possess_weapon := 'Y'; WHEN cr.weapon = 2 THEN v_suspect_possess_weapon := 'N'; ELSE v_suspect_possess_weapon := NULL; END CASE; --TERMINATION REASON CASE WHEN cr.termreason = 1 THEN v_reason_for_termination := 'DVRVOL'; WHEN cr.termreason = 2 THEN v_reason_for_termination := 'ALATER'; WHEN cr.termreason = 3 THEN v_reason_for_termination := 'VEHDIS'; WHEN cr.termreason = 4 THEN v_reason_for_termination := 'VEHWRK'; WHEN cr.termreason = 5 THEN v_reason_for_termination := 'ROADBL'; WHEN cr.termreason = 6 THEN v_reason_for_termination := 'STOPST'; WHEN cr.termreason = 7 THEN v_reason_for_termination := 'RAMMED'; WHEN cr.termreason = 8 THEN v_reason_for_termination := 'WEAPON'; WHEN cr.termreason = 9 THEN v_reason_for_termination := 'DVRINJ'; WHEN cr.termreason = 10 THEN v_reason_for_termination := 'OFFTER'; WHEN cr.termreason = 11 THEN v_reason_for_termination := 'SUPTER'; WHEN cr.termreason = 12 THEN v_reason_for_termination := 'PATDIS'; WHEN cr.termreason = 13 THEN v_reason_for_termination := 'PATWRK'; WHEN cr.termreason = 14 THEN v_reason_for_termination := 'LOSTEM'; WHEN cr.termreason = 15 THEN v_reason_for_termination := 'FLEDAB'; WHEN cr.termreason = 16 THEN v_reason_for_termination := 'FLEDWK'; WHEN cr.termreason = 17 THEN v_reason_for_termination := 'OFFINJ'; WHEN cr.termreason = 18 THEN v_reason_for_termination := 'OTHAGY'; ELSE v_reason_for_termination := NULL; END CASE; --FLIGHT REASON CASE WHEN cr.fli_reason = 1 THEN v_reason_for_flight := 'SUMMON'; WHEN cr.fli_reason = 2 THEN v_reason_for_flight := 'DUIARR'; WHEN cr.fli_reason = 3 THEN v_reason_for_flight := 'FELONY'; WHEN cr.fli_reason = 4 THEN v_reason_for_flight := 'STOLEN'; WHEN cr.fli_reason = 5 THEN v_reason_for_flight := 'MISDEM'; WHEN cr.fli_reason = 6 THEN v_reason_for_flight := 'DRUGAR'; WHEN cr.fli_reason = 7 THEN v_reason_for_flight := 'FEARPO'; WHEN cr.fli_reason = 8 THEN v_reason_for_flight := 'NODVRL'; WHEN cr.fli_reason = 9 THEN v_reason_for_flight := 'NOINSU'; WHEN cr.fli_reason = 10 THEN v_reason_for_flight := 'PARENT'; WHEN cr.fli_reason = 11 THEN v_reason_for_flight := 'MENTAL'; WHEN cr.fli_reason = 12 THEN v_reason_for_flight := 'OTHERR'; ELSE v_reason_for_flight := NULL; END CASE; --ACCIDENT CASE WHEN cr.accident = 1 THEN v_accident := 'Y'; WHEN cr.accident = 2 THEN v_accident := 'N'; ELSE v_accident := NULL; END CASE; --ACCIDENT TYPE CASE WHEN cr.accdnttype = 1 THEN v_accident_type := 'PROPERTY DAMAGE'; WHEN cr.accdnttype = 2 THEN v_accident_type := 'INJURY'; WHEN cr.accdnttype = 3 THEN v_accident_type := 'FATALITY'; ELSE v_accident_type := NULL; END CASE; --ACCIDENT PARTIES INVOLVED CASE WHEN cr.accparties = 1 THEN v_accident_parties_involved := 'SUSPONLY'; WHEN cr.accparties = 2 THEN v_accident_parties_involved := 'THRDONLY'; WHEN cr.accparties = 3 THEN v_accident_parties_involved := 'POLIONLY'; WHEN cr.accparties = 4 THEN v_accident_parties_involved := 'POLISUSP'; WHEN cr.accparties = 5 THEN v_accident_parties_involved := 'POLITHRD'; WHEN cr.accparties = 6 THEN v_accident_parties_involved := 'SUSPTHRD'; WHEN cr.accparties = 7 THEN v_accident_parties_involved := 'ALLPARTY'; ELSE v_accident_parties_involved := NULL; END CASE; SELECT COUNT ( * ) INTO v_case_count FROM import_legacy_pursuit WHERE case_number = cr.loccasenum; IF v_case_count = 0 THEN DBMS_OUTPUT.put_line ('DONE'); -- PLEASE assign all cursor values to some variables ; e.g v_lo_number := cr.loccasenum; INSERT INTO import_legacy_pursuit ( case_number, fli_reason ) VALUES (v_lo_number, v_reason_for_flight); ELSE DBMS_OUTPUT.put_line ('Nothing inserted'); END IF; END LOOP; COMMIT; EXCEPTION WHEN OTHERS THEN ROLLBACK; DBMS_OUTPUT.put_line (SUBSTR (SQLERRM, 1, 300)); RAISE; END;
Concerning
-
Import data from a database, alias mail merge.
I have a form of connection plug I need to automatically populate with a list of database names. Is there a way to do this in Acbrobat Pro XI? Thank you!
Problem solved. Excel could not place a "TAB" at the end of my first row. Fix, txt file opened in Notepad and add a TAB at the end of the first line then save. Thanks for the help George!
-
Data resources not defined when you perform commissioning programmatically using the API of the IOM
Hello
I use code below for the provision by programming a resource to a user, but the resource data is filled. The only fields get populated are those who have prepopulate fixed adapters.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Data com.thortech.xl.vo.ResourceData = userIntf.provisionResource (Long.parseLong (userId), objectKey);
long userObjectInstanceKey = Long.parseLong (data.getOiuKey ());
long objectInstanceKey = Long.parseLong (data.getObiKey ());
Hashtable InputHash = new Hashtable();
Fill out the entry below with data from object
for (int b = 3; b < row.length; b ++)
{
System.out.println (getTimeStamp () 'value of parameter', header [b] + "=" + row [b]).
inputHash.put (header [b], [b] row);
}
Sets the data object
formIntf.setProcessFormData (objectInstanceKey, inputHash);
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--
UZ
UZ, you use the wrong key here, it is the key to the OBI, pretty ORC touches to set the data form. Get the key of the user to help process instance
tcResultSet resultGetObjects = (usr_key) userOperationsIntf.getObjects;
int countResultGetObjects = resultGetObjects.getRowCount ();
for (int j = countResultGetObjects; j--> = 0 ;) {
resultGetObjects.goToRow (j);
If (resultGetObjects.getStringValue("Objects.Name").equalsIgnoreCase ("object name"))
{
System.out.println ("instance key:"+ resultGetObjects.getStringValue ("process Instance.Key") ");
}
Mark it is OK if your question is answered *.
-
How can I get the text of oracle database data?
We would like to get the text data to oracle database instead of manually in illustrator, is there a way to do it? Thank you.
I can not extract data from databases. There may be some plug-ins for automation, somewhere, but not in native mode.
Mylenium
-
load data to the oracle database...
Dear Sir
I use to load data to oracle database .is there other methods to load bulk data to the database sql badr...
Discover the outer table in Oracle Utilities
-
May I ask, from a point of view, low tech a little question on the backup/restore of Oracle databases. Are there tools commonly used for backup of Oracle database? And have you ever encounter the snowman DBA / other places you have worked to make bad backups? I'd like to hear horror stories about what can and will hurt in oracle database backups? It is a simple process, or wrong - this easy ens at the end and things / featuring data etc.?
And the second part of the question is if you're looking for auditing oracle backup processes, that you are looking 'good evidence' that this is done in line with the policy /strategy?>
Are there specific reasons why backups become unnecessary, i.e. what goes wrong, when it comes to restoration, it is not restore.
There may be two reasons. One, for example, backups are accidentally deleted, partially or completely. Another way may be the backup is marked as obsolete due to the retention or some operations strategy as resetlogs who could not leave the backups in use.
I was also wondering how easy it is perhaps "missing data" when planning a backup DB with RMAN? Is this possible? Have you ever seen do, and if so is there any 'specific' part of a database that is often overlooked during examination of what to plan for in the backup task?
What do you mean by "missing data"? It would be possible if you don't take care of backups that you plan.
Aman...
Maybe you are looking for
-
I upgraded to mozilla and now the toolbar file, view, Favorites, support and tools is missing. This has happened Each time Firefox opened Is a month ago
-
Tecra M4 - does not start, no image on the monitor
My Tecra M4 will not start.When I turn it on, all I hear is a quick check of the DVD player, a hum of hard drive and fan. I tried an external monitor and still see nothing.I also changed the ram, tried to start with disconnected HARD drive disconnect
-
SanDisk Sansa Fuze 4 GB pink Media Player
How to delete music from mp3 player?
-
How bought computer erase all files
to restore default
-
How do I expire the app in blackberry?
Hi friends, I'm new to blackberry. I developed an application. So I wanted to put in expiration date. Is it possible to set the date. Please help me. Thanks in advance