Import of SSO - Bug database
Hi - I hope that there is some autour assistants who can help me.
I'm installing vCenter two sites (5.1U1b) implemented in bound mode and a multi site deployment SSO (SQL2012 db). As suggested, I installed my vCenter Site01 requirements and export the database SSO. Then installed the second site SSO and imported Site02 of this database. Then on board with vCenter to Site02 installation. Once the two sites had vCenter I exported the SSO Site02 database and imported into Site01 so that all sites are on the same page.
Then, I wanted to create a control point where I closed both servers and took pictures in their current States.
Once back online, I installed SRM in Site01, but before installing Site02 I want distribute Site01 replaces Site02. The export works, but when I import to Site02 I get the following response within ten minutes.
Starts the complete execution of the import data
Bug
A few notes:
I noticed the command is case-sensitive for the path and gives the same answer of Bug (though immediately instead of minutes later) if sso is used instead of SINGLE sign-on for the location of the db directory... This is not currently the case.
My installation directories are not by default. (C:\Program Files = > E:\Services)
Domain accounts have been used as follows - SQL installation - Domain\SQLaccount, SSO/NP/VC - Domain\VCaccount, installation RS - Domain\SRMaccount.
I am not able to see the cause in the file repl_tool.log (attached).
Everyone has seen or know what could be the problem? Suggestions?
Thanks in advance
Theo
I was finally able to get this to work last night!
In response to Girish I connected the call. They sent me a java file that I had to replace as it is suggested to Girish must occur. However, this does not have the problem. The new file does not work. I started with the old and the technical support engineers then went ahead with the troubleshooting. (My installation paths are not by default or versions are incorrect - not troubleshoot us the reason for this, but I found in other scripts that the different installation path was not working and have fixed the path in all necessary scripts.)
The real solution:
SRM does not require the SSO database to be distributed according to the engineer.
In addition, it seems as if SSO v1 doesn't like it when the database is distributed, when there is no change. This is the reason why it broke.
I therefore proceeded to the second straight MIS installation after the first. The last time that I have synced the SSO databases has been after the installation of VC.
I have my reservations with this solution, but have confirmed with the engineer that it's OK. I still need to test the system extensively.
The next version of SSO (v2) shipped with vSphere 5.5 apparently requires no manual data synchronization. It was also completely reconstructed and can be more stable than the current. I'll wait for this version, when I have a choice. The other option would be not to use bound mode and run two completely separate SSO servers. It would still be v1 but unless you expect 5.5 HP.
Tags: VMware
Similar Questions
-
I have received several messages inviting me to download the software updates that I use. I think they are attempts to get help with phishing or such. The last "software update available" amplifies - "this new version of Firefox contains an important security and bug fixes, and much improved page rendering times offer." Is generated by anyone at Mozilla, or automatically in Mozilla? Mozilla distributes these types of messages? That Firefox is updated automatically, then these messages should have no useful function except to help with the download of some intrusive camera, which I did not need. Are there plug-ins that I should throw?
Upgrade to Firefox 35 is currently limited and not everyone gets the new update offered at this time.
If this is the case for you, then you can manually update via help > topic.See also:
-
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
-
CF Bug database has been down for anyone else?
I tried to access the ColdFusion bug database to make a few suggestions, but the site has been down for almost a week now. Anyone else having this problem? I emptied my DNS cache and re-registers it.
What's weird is when I ping cfbugs.adobe.com, I get an IP address of 192.150.14.191 and she is resolved to a host name of mmbeta.macromedia.com
I also tried bugbase.adobe.com, but to no avail.
Try to clear your browser's cache and cookies for adobe.com. There is a known problem with redirection loops and cookies with the bugbase.
-Carl V.
-
Problem connecting SSO using SDDM 4.0 to import the SQL Server database
I installed the new production version.
It migrated the connections of preference and db 3.3 very well.
This figure includes several SQL Server databases, where I worked with for a while.
3.3, I was able to add the correct driver and the related standards ntlmauth.dll body so that I could import of SQL Server (and even with SQL Developer 3.x, I could connect to and query SQL Server)
The 4.0 update, the driver and database connections migrate very well but I can't connect. I get the old error "Library SSPI has not loaded". Where is this dll must go to 4.0? I tried to copy it to the same relative locations used by 3.3, but nothing helped.
Help!
Finally got it - had upgraded to 1.3.1 JTDS
-
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
-
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-
-
How to create an ODBC connection to import objects to relational database
Can you please give me a step by step explanatiuon how create an ODBC connection to import objects to the relational database?Hello-
The path is relative where you store your files for Oracle. It should be similar to something like this:
.. \oracle\product\11.1.0\db_1\NETWORK\ADMIN
the 'NETWORK\ADMIN' part should always be the same. If you have difficulties to find, just a Windows Search "tnsnames.
I hope this helps!
Kind regards
Jason -
Import of FCX Bug XAVCL (Long Gob)
FCX cannot import XAVCL (Long gob) files from a location other than the camera card.
If you import these files from a media such as your hard drive or an external drive, FCX importer imports only the sound file!
The same situation when you save the original file in your Mediathek FCX as when you leave the original on the external folder or drive.
The difference is that when you leave it on an external file or a player who does MXF ' t change to a MOV file unusable!
The XML for export does ' t work too! Not when you import the card from the camera and also not when you import from a folder or another drive.
I did the test with images of the Sony FS5
Everything from the FS7 works great!
FCX here does not change the original MXF files in mov format. Import runs in large and export xml works well!
Please Apple immediately solve this problem! Thank you!
Use your comments.
-
Error importing 10g to 11G database Dump
Hello
We install the 10 DB to 11 DB g g dump. We received the dump in Ribbon file and try to import with command IMP.
IMP system/sys@test11g file = / dev/st0 full = y fromuser = touser = x x
However, it gives an error "IMP-00037: Character set unknown marker. Please advice on this too let us know things to support the installation of 10 g to 11 g DB dump.
Thanks in advance.
Hello
You must use a directory object to perform this import, and you need to restore from tape on a filesystem for the datapump could use it.
I don't think that datapump can manage the bands directly, I have a sneaking suspicion there are tweaks hidding or something again to 12 c, which helps to deal with this, but it escapes me.
Just use SD or what command to copy from tape to disk first.
See you soon,.
Rich
-
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!
-
Please explain the meaning of 'Deferred' in the JIRA bug database
Dear Adobe team,
I posted a few bugs recently and discovered this morning that they are now "closed" with a "Deferred" resolution
Some of these bugs are
https://bugs.Adobe.com/jira/browse/FB-26396
https://bugs.Adobe.com/jira/browse/FB-26317
https://bugs.Adobe.com/jira/browse/FB-26081
Please explain how to understand this decision.
My hypothesis is that the bugs remain open until they are solved in the next version.
Why are these bugs closed or delayed?
When the deferred bugs are reopened?
Management will likely chime in here.
Briefly, the bugs get carried over to the current version. They have reviewed again when planning continues for the next version.
The only time wherever a bug/request is really dead is when it is marked as "retirement".
Jason San Jose
Software engineer, Flash Builder
-
The letter came to my Inbox to eighteen months ago, I must have deleted, I can't find a copy in the trash, letter to legal content inportant. I hope you can help. P.S. I have a donation to Mozilla. Thanks Anthony
It's the Thunderbird support forum. Most of the people here is volunteers devoting their time to help others.
you will have a record of it?
I don't know exactly what you meant when asking this question.
Mozilla is not a provider of e-mail and does not keep any of your messages. If so, you will need to check with your e-mail provider, assuming that you store messages on the server in the first place.
The most likely scenario is that your messages are all on your computer. So if you can't find the message you think you deleted anyway I would say that the chances are pretty slim to retrieve.If you still want to give it a try, see
http://KB.mozillazine.org/Undelete_a_message -
Anychart 4.1.1 no bug database
Dear experts. Some of my users still calling a function to record anychart graphics as images via the right mouse click actions. In anychart 3.3 is not possible, as you know. So I tried to explore the possibility of using Anychart 4.1.1 in my Apex v.3.1 environment.
I used a very simple query, selecting certain values to double, and the graphic is displayed correctly. Click the right button, shown Anychart 4.1.1 and a save as option.
That is the problem:
When you use my original query, much more time, I get the message 'No Data'. The same query in a region Anychart 3.3 works perfectly. Do you have any idea how to solve this problem? It seems to me that if anychart does not wait for the query to the end and return the #DATA collection #.
Brgds,
SEBIt's xml for 4.2.1 pie. I hope this will help you:
{%Name} percentage: {%YPercentOfSeries}{numDecimals: 0}% {%Name} {%YPercentOfSeries}{numDecimals:1}% title -
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
Maybe you are looking for
-
have a toshiba laptop and vista as OS; -the dvd writer does not - have tried to uninstall and reboot, but the software does not load = and the Microsoft fix this program I downloaded also cannot fix :(
-
6510B211a wireless stopped working suddenly and can not get it back
One day my hp printer works fine the next just stopped can't get it back tried to uninstall and reinstall doesn't and still no luck. computer has it under devices with a green check mark, States printer wireless connected to full power. When I go to
-
Stop forwarding email to gmail
At the same time as I had all my Windows Live email forwards to a gmail address. I want to stop this but don't know how to do it. I'm Canadian, use TELUS as my server. I checked and re-checked the electronic setting on my TELUS account and the e-m
-
The effects of site redirecting to backlinks.
My site Arel.info has had many backlinks, but I think that Google consider it a spam links, so Google dumped my SERP site.Now, I want to redirect in to my other site, signinX. So, if I redirect in to signinX, if it will add backlinks to signinX? Imea