Migrating ASP's from sybase and sqlserver to ORACLE
Hi!
i need information about what do i need or what it takes to
migrate ASP's that are connected to sybase and sqlserver by
ODBC, to Oracle? , if you have any document, information or
contact, it'll be helpfull for me.
thank you!
This can't be answered globally as it depends on too many settings.
For a generic overview you might check out the migration Web Site: http://www.oracle.com/technetwork/database/migration/index-084442.html
Similar Messages
-
Migrating SYSTEM tablespace from DMTS to LMTS in Oracle 9.2.0.7
Migrating SYSTEM tablespace from DMTS to LMTS in Oracle 9.2.0.7 using
brspace -f dbcreate
SAP version: 4.6C
Oracle: 9.2.0.7
OS: AIX 5.3
BRTools: 6.40(42) /** 6.40(10) or (12) will be sufficient according to SAP ***/
IMPORTANT ***************************************
MUST DO:
1. Create a Full Backup of your system
2. Test your Restore and recovery of your backup.
3. Have a copy of all your tablespaces names on hand
4. Know your SYS and SYSTEM passwords
5. Run CheckDB in DB13 to ensure it is completed successfully with no warnings. This reduce the chance of hitting errors in the process
6. Ensure your UNDO tablespace is big enough
7. OSS 400241 Problems with ops$ or sapr3 connect to Oracle
NOTE: OSS 706625(Read this note)
The migration from a dictionary-managed SYSTEM tablespace to a locally-managed tablespace using the PL/SQL procedure DBMS_SPACE_ADMIN.TABLESPACE_MIGRATE_TO_LOCAL is not supported in the SAP environment.
In UNIX, logon as ora<sid>
run command: brspace -f dbcreate
This command will triggers a Menu. The are seven(7) steps to complete the whole process. Do them in sequence, from step 1 to step 7 faithfully. In Step 1, ensure that your settings of PSAPTEMP, PSAPUNDO etc details such as filenames are correct. The rest I leave it as default and they are fine. Do not change redo log group from 8 to 4 even if you only have 4 redo groups. If not, you might need to restore the system! If the seven steps are complete without errors(warnings is acceptable), congrats. Perform a backup again.
Problems I encountered that caused me to restore system:
1./ Problem: I changed the redo group from 8 to 4 and in the later stage after the tablespaces and files are dropped, the system prompted me that 4 is not acceptable! I can't go back then so a restore is performed.
Solution: Leave the default value 8 as it is
2./ I was using wireless network and the network breaks thus process breaks.
Solution: This process in user-interactive and requires you to input confirmation along the way so do it using LAN.
3./ In the process of dropping tablespace PSAP<SID>, I encountered:
BR0301E SQL error -604 at location BrTspDrop-2
ORA-00601: error occurred at recursive SQL level 1
ORA-01555: snapshot too old: rollback segment number 22 with name '_SYSSMU22$" too small
Solution: I have not fixed this yet but I think it is because my PSAPUNDO is too small(800M) so I will increase it to a bigger value e.g. 5GB
4. Problem: Unable to start sap after successfully migrated. OPS$user problem
Solution: logon as <sid>adm, run R3trans -x in a directory that <sid>adm has read/write permission. R3trans -x will creates a file call trans.log. Read the details and refer to OSS 400241
Result: I have successfully performed this on one(1) system and doing this on the another one currently but encounter Problem 3. Will update this further if there are more findings.
REFERENCE:
OSS 748434 New BRSPACE function "dbcreate" - recreate database
OSS 646681 Reorganizing tables with BRSPACE
OSS 541538 FAX: Reorganizations
Message was edited by:
Annie Chan
Message was edited by:
Annie Chan
Message was edited by:
Annie ChanThe current one I am implementing is a development system. The database is less than 100GB. 800MB of PSAPUNDO is sufficient for our development usage.
Follow up on Problem 3:
I created another undo tablespace PSAPUNDO2(undodata.dbf) with size of 5GB. I switched undo tablespace to PSAPUNDO2 and placed PSAPUNDO(undo.data1) offline. With PSAPUNDO2 online and PSAPUNDO offline, I started brspace -f dbcreate and encountered the error below at Step 2 Export User tablespace:
BR0301E SQL error -376 at location BrStattabCreate-3
ORA-00376: file 17 cannot be read at this time
ORA-01110: data file 17: '/oracle/DVT/sapdata1/undo_1/undo.data1'
ORA-06512: at 'SYS.DBMS_STATS", line 5317
ORA-06512: at line 1
I aborted the process and verified that SAP is able to run with this settings. I started CheckDB in DB13 and it shows me these messages:
BR0301W SQL error -376 at location brc_dblog_open-5
ORA-00376: file 17 cannot be read at this time
ORA-01110: data file 17: '/oracle/DEV/sapdata1/undo_1/undo.data1'
BR0324W Insertion of database log header failed
I don't understand then. I have already switched the undo tablespace from PSAPUNDO to PSAPUNDO2. Why the message above still appears? Once I put PSAPUNDO online, CheckDB completes successfully without warning.
I did show parameter undo_tablespace and the result is PSAPUNDO2(5GB).
So exactly, what's going on? Can anyone advise?
===============================================
I have managed to clear the message in DB13 after dropping PSAPUNDO tablespace including contents and datafiles. This is mentioned is OSS note 600141 pg 8 as below:
Note: You cannot just set the old rollback-tablespace PSAPROLL to offline instead of deleting it properly. This results in ORA-00376 in connection with ORA-01110 error messages. PSAPROLL must remain ONLINE until it is deleted. (Oracle bug 3635653)
Message was edited by:
Annie Chan -
How to extract data from xml and insert into Oracle table
Hi,
I have a large xml file. which will have hundreds of the following transaction tags having column names and there values.
There is a table one of the schema with coulums "actualCostRate","billRate"....etc.
I need to extract the values of these columns and insert into the table
<Transaction actualCostRate="0" billRate="0" chargeable="1" clientID="NikuUK" chargeCode="LCOCD1" externalID="L-RESCODE_UK1-PROJ_UK_CNT_GBP-37289-8" importStatus="N" projectID="TESTPROJ" resourceID="admin" transactionDate="2002-02-12" transactionType="L" units="11" taskID="5017601" inputTypeCode="SALES" groupId="123" voucherNumber="ABCVDD" transactionClass="ABCD"/>
<Transaction actualCostRate="0" billRate="0" chargeable="1" clientID="NikuEU" chargeCode="LCOCD1" externalID="L-RESCODE_US1-PROJ_EU_STD2-37291-4" importStatus="N" projectID="TESTPROJ" resourceID="admin" transactionDate="2002-02-04" transactionType="L" units="4" taskID="5017601" inputTypeCode="SALES" groupId="124" voucherNumber="EEE222" transactionClass="DEFG"/>Re: Insert from XML to relational table
http://www.google.ae/search?hl=ar&q=extract+data+from+xml+and+insert+into+Oracle+table+&btnG=%D8%A8%D8%AD%D8%AB+Google&meta= -
Read data from Excel and write into oracle database
Hi
I want to know how can i read data from excel and write into oracle database using java.Kindly help me out to find a solution.
Thanks and Regards
NeetaHai,
I am suggesting the solution.
I will try out and let u know soon.
Make a coma separated file from your excel file.
Assuming that your requirement allows to make a csv file.
This file may be passed as an file object to be read by java.Using JDBC you must be able to populate the data base.You can also use String Tokenizer if needed.
You do not want to go via sql Loader?
For reading the excel file itself do you want java? -
Need to read Email from Lotusnotes and Outlook using Oracle
Dear All,
My database version Oracle 10.2
I need to read Email from Lotusnotes and Outlook using Oracle.
I have tried with below link
http://sourceforge.net/projects/plsqlmailclient/The problem is i am getting some java error.
Can anyone suggest me to proceed further.
Cheers,
SanI am using the another function to read an email from pop3 server
create or replace
FUNCTION pop3 (
username VARCHAR2,
PASSWORD VARCHAR2,
msgnum NUMBER
RETURN tstrings PIPELINED
IS
--POP3_SERVER constant varchar2(19) := '127.0.0.1';
pop3_server CONSTANT VARCHAR2 (100) := 'xxxxxx';
pop3_port CONSTANT NUMBER := 110;
--POP3_TIMEOUT constant number := 10;
pop3_ok CONSTANT VARCHAR2 (10) := '+OK';
e_pop3_error EXCEPTION;
--E_READ_TIMEOUT exception;
--pragma exception_init( E_READ_TIMEOUT, -29276 );
socket UTL_TCP.connection;
line VARCHAR2 (30000);
BYTES INTEGER;
-- send a POP3 command
-- (we expect each command to respond with a +OK)
FUNCTION writetopop (command VARCHAR2)
RETURN VARCHAR2
IS
len INTEGER;
resp VARCHAR2 (30000);
BEGIN
len := UTL_TCP.write_line (socket, command);
UTL_TCP.FLUSH (socket);
-- using a hack to check the popd response
len := UTL_TCP.read_line (socket, resp);
IF SUBSTR (resp, 1, 3) != pop3_ok
THEN
RAISE e_pop3_error;
END IF;
RETURN (resp);
END;
BEGIN
--UTL_TCP.CLOSE_CONNECTION (SOCKET);
PIPE ROW ('pop3:' || pop3_server || ' port:' || pop3_port);
-- Just to make sure there are no previously opened connections
UTL_TCP.close_all_connections;
-- open a socket connection to the POP3 server
socket :=
UTL_TCP.open_connection (remote_host => pop3_server,
remote_port => pop3_port,
--tx_timeout => POP3_TIMEOUT,
CHARSET => 'US7ASCII'
-- read the server banner/response from the pop3 daemon
PIPE ROW (UTL_TCP.get_line (socket));
-- authenticate with the POP3 server using the USER and PASS commands
PIPE ROW ('USER ' || username);
PIPE ROW (writetopop ('USER ' || username));
PIPE ROW ('PASS ' || PASSWORD);
PIPE ROW (writetopop ('PASS ' || PASSWORD));
-- retrieve the specific message
PIPE ROW ('RETR ' || msgnum);
PIPE ROW (writetopop ('RETR ' || msgnum));
--PIPE ROW( 'LIST '||msgNum ); PIPE ROW( WriteToPop('LIST '||msgNum) );
PIPE ROW ('*** START OF INTERNET MESSAGE BODY ***');
LOOP
dbms_output.put_line('entering');
BYTES := UTL_TCP.available (socket);
IF BYTES > 0
THEN
BYTES := UTL_TCP.read_line (socket, line);
line := REPLACE (line, CHR (13) || CHR (10), '');
-- WILL HAVE TO USE PLSQL FUNCTIONS (HAVE BOOKMARKED) TO GET THE MAIL
-- IN THE PREFERRED FORMAT. CAN USE "REPLACE()"
IF LENGTH (line) = 1 AND line = '.'
THEN
PIPE ROW ('*** END OF INTERNET MESSAGE BODY ***');
ELSE
PIPE ROW (line);
end if;
END IF;
EXIT when length (LINE) = 1 and LINE = '.';
-- PIPE ROW (line);
END LOOP;
--PIPE ROW( '*** END OF INTERNET MESSAGE BODY ***' );
-- close connection
PIPE ROW ('QUIT');
PIPE ROW (writetopop ('QUIT'));
UTL_TCP.CLOSE_CONNECTION (SOCKET);
EXCEPTION
WHEN e_pop3_error
THEN
PIPE ROW ('There are no mails !');
END;I am getting the below output .
21 pop3:sbssld1 port:110
75 "+OK Lotus Notes POP3 server version Release 8.0.1 ready on SBSSLD1/SBPSS.
47 USER [email protected]
69 "+OK [email protected], your papers please.
13 PASS password
63 "+OK [email protected] has 1 message.
6 RETR 1
17 "+OK 1546 octets
38 *** START OF INTERNET MESSAGE BODY ***
9 Subject:
48 X-KeepSent: A231D6D0:8485FE4B-65257AB1:0022E60F;
23 type=4; name=$KeepSent
46 To: [email protected]
53 X-Mailer: Lotus Notes Release 8.0.1 February 07, 2008
95 Message-ID: <[email protected]mbnpparibasfs.in>
48 From: [email protected]
36 Date: Fri, 9 Nov 2012 11:51:14 +0530
90 X-MIMETrack: Serialize by POP3 Server on SBSSLD1/SBPSS(Release 8.0.1|February 07, 2008) at
23 11/09/2012 11:51:21 AM
17 MIME-Version: 1.0
37 Content-type: multipart/alternative;
68 " Boundary="0__=EABBF022DFB16ED68f9e8a93df938690918cEABBF022DFB16ED6""
27 Content-Disposition: inline
(null) (null)
58 --0__=EABBF022DFB16ED68f9e8a93df938690918cEABBF022DFB16ED6
39 Content-type: text/plain; charset=UTF-8
33 Content-transfer-encoding: base64
(null) (null)
(null) (null)
76 DQoNCg0KUmVnYXJkcywNClNoYW5tdWdhbSBOYXRhcmFqYW4uDQpNb2IgOiA5NjI5MjUyNDI1DQpP
76 ZmYgOiAwNDQgMjI1MDQ3MDAgRXh0biA0Nzc5DQoNCiB+SWYgdGhlIGZhY3RzIGRvbuKAmXQgZml0
68 IHRoZSB0aGVvcnksIGNoYW5nZSB0aGUgZmFjdHMu4oCdIC0gQWxiZXJ0IEVpbnN0ZWlu
(null) (null)
58 --0__=EABBF022DFB16ED68f9e8a93df938690918cEABBF022DFB16ED6
38 Content-type: text/html; charset=UTF-8
27 Content-Disposition: inline
33 Content-transfer-encoding: base64
(null) (null)
76 PGh0bWw+PGJvZHk+DQo8cD5SZWdhcmRzLDxicj4NClNoYW5tdWdhbSBOYXRhcmFqYW4uPGJyPg0K
76 TW9iIDogOTYyOTI1MjQyNTxicj4NCk9mZiA6IDA0NCAyMjUwNDcwMCBFeHRuIDQ3Nzk8YnI+DQo8
76 YnI+DQogfklmIHRoZSBmYWN0cyBkb27igJl0IGZpdCB0aGUgdGhlb3J5LCBjaGFuZ2UgdGhlIGZh
60 Y3RzLuKAnSAtIEFsYmVydCBFaW5zdGVpbjxicj4NCjwvYm9keT48L2h0bWw+
(null) (null)
60 --0__=EABBF022DFB16ED68f9e8a93df938690918cEABBF022DFB16ED6--
(null) (null)
36 *** END OF INTERNET MESSAGE BODY ***
4 QUIT
42 "+OK Lotus Notes POP3 server signing off.
"Now pls suggest me how can i store the sender mail id, receiver mail id, subject and body of the mail in a table.
So that i can display the saved data in the above table as a mail in my separate application.
Thanks in advance.
Cheers,
San -
Migrating selected data from Sybase 11 to Oracle 8i
We have an application re-written using an Oracle 8i backend and we need to migrate data from Sybase 11.9.2 to Oracle 8i. No triggers or procedures to migrate, and not all the tables or even all the rows in the tables. I have read a lot of posts on this and am not sure if the Workbench or Heterogenous services is the best tool/method. For bulk migration it seems the Workbench might work if we create a view and bcp just the view data in comma delimited then use the SQL Loader to move it to Oracle. As a side question when bcping the view do we want to terminate each line with cr/lf or no line termination. Alternatively, could we use the hetergenous services and some perl scripts to accomplish the same thing using copy and select and throttle it some running in batches?
Lastly, if we'd also like to possibly access the old Sybase data does the new client app need specific coding to utilize this service? Do the two db's need to be the same schema or identical to utilize this product?
Thnks - bcSandeep,
Have you used this user which holds the omwb repository before for a migration? When you connected the first itme, did you get a message, that the repository tables did not exist and would you like to create them?
Are you using the connected or disconnected source model load?
Donal -
New to PL\SQL from Sybase and need an answer to a question please
Hi,
I want to read a row on table 'One' and caputure the values of 6 columns. So I will have values "A", "B","C", "D", "E" & "F". Then I want to use these 6 key values in a sub query to select rows from Table 'Two'. From table 'Two' I want want to splilt a varchar column that has multiple values that are delimited by '|'.
In Sybase I would of stuck the 6 values into variables from Table 'One'. Then inserted them into a temp table and used that temp table in the join to get the rows from table 'Two' that I wanted. Then stuck those results in a temp table and lopped around the rows and split the data out into another temp table. Then just selected the temp table to uotput the results. Now that may seem long winded but very simple to build.
So can someone give me some help in how to structure this in Oracle. Also I cannot created global temp tables in my session.
Thanks in Advance912982 wrote:
In Sybase I would of stuck the 6 values into variables from Table 'One'. Then inserted them into a temp table and used that temp table in the join to get the rows from table 'Two' that I wanted. Then stuck those results in a temp table and lopped around the rows and split the data out into another temp table. Then just selected the temp table to uotput the results. Now that may seem long winded but very simple to build.The reason for that in Sybase/SQL-Server is to minimise locking. So grab data as quickly as possible (minimise the time needed for the read or write lock) and stuff it into a temp table that is session local and cannot cause lock contention with other sessions.
A monolithic lock manager is used. This means means that every single lock requires memory to manager. That is why lock escalation exists. Memory starts getting low and a bunch of row locks are changed into fewer page locks, thus freeing memory. Or a bunch of page locks are changed into a table lock, thus freeing memory.
Locks are expensive.
In Oracle that is not the case. A single lock cost as much as a billion locks. Nothing. Not a single byte of memory is required as there is no monolithic lock manager in memory (Oracle has transaction slots in data blocks). In Oracle, a reader (with read locks) does not block another reader or another writer. Even to the same rows. A writer does not block a reader - even to the same rows (and the reader does a consistent and not dirty read). The only times there is a block is when writers attempt to lock the same rows.
Thus in Oracle, there is no need for the long winded temp table work-around of Sybase. It is not only unnecessary, but you will seriously impact Oracle performance and scalability by doing that.
Oracle is not Sybase. So be careful of using your Sybase technical expertise and approaches to Oracle. It will be wrong most of the time. -
Migrate to 10g from Sybase Adaptive Server Anywhere 8
Hi,
My company is planning to migrate from Sybase Adaptive Server Anywhere 8 to Oracle10g.
Does anyone have any experience with this particular case?
I need some advice on how to make the migration 'smooth'.
Thanks a lot,
=adley=No we don't support that Sybase database type currently. Have you looked at the migration tools from Ispirer?
http://www.ispirer.com/products/
Donal -
How to Migrate my database from SQL Server 2000 to Oracle
I want to transfer my database from SQL Server 2000 to Oracle, Can I do this without using Oracle Migration Workbench ??
Please help me.
Thanks in advance
Vicky... :-)Do you have a good technical reason for not wanting to use the Migration Workbench?
Given that it's free and does a hell of a lot of the work for you, why wouldn't you use it?
Other than that, I would say you would be on your own...
cheers,
Anthony -
Migrating a table from SQL server 2005 to oracle 9i
Hi
I need to migrate a table from SQL server to oracle, both of which are on different machines, I tried using SQL server DTS export functionality selected the Oracle driver, created a DSN, but it gave error message box as shown below
Error Source: Microsoft OLE DB Provider for ODBC Drivers
"ORA 12560 :TNS protocol adapter error"
Context:Error During initialization of the provider
While i was successfully able to migrate the table from SQL SERVER to MS-ACCESS and from MS ACCESS to Oracle
thanks
abhishekHi
thanks warren, i just figured out that the DSN i had created while migrating data from Access to oracle was User DSN, i just created a system DSN of the similar kind and was successfully able to export the data from SQL server to oracle, the only problem being the column names in SQL server are longer than the limit of 30 characters we have in ORACLE..
Regards
Abhishek -
How to extract a single column from XML and load in Oracle
Hi
below I have a structure of xml files , I just need to extarct <RecordReference>PQPMID:7358</RecordReference>
from file and load in to oracle ..
Please let me know how to do ..??
file content below
HoldingsRecord>
<RecordReference>PQPMID:7358</RecordReference>
<NotificationType>00</NotificationType>
<SerialVersion>
<SerialVersionIdentifier>
<SerialVersionIDType>07</SerialVersionIDType>
<IDValue>1068624X</IDValue>
</SerialVersionIdentifier>
<SerialVersionIdentifier>
<SerialVersionIDType>01</SerialVersionIDType>
<IDTypeName>PMID</IDTypeName>
<IDValue>7358</IDValue>
</SerialVersionIdentifier>
<Title>
<TitleType>02</TitleType>
<TitleText>Pittsburgh Post - Gazette</TitleText>
</Title>
<Publisher>
<PublishingRole>01</PublishingRole>
<PublisherName>Post Gazette Publishing Company</PublisherName>
</Publisher>
<OnlinePackage>
<OnlineServiceName>ProQuest</OnlineServiceName>
<Website>
<WebsiteRole>03</WebsiteRole>
<WebsiteLink>http://proquest.umi.com/pqdweb</WebsiteLink>
</Website>
<HoldingsDetail>
<JournalIssue>
<JournalIssueRole>04</JournalIssueRole>
<JournalIssueDate>
<DateFormat>00</DateFormat>
<Date>19930118</Date>
</JournalIssueDate>
</JournalIssue>
<JournalIssue>
<JournalIssueRole>06</JournalIssueRole>
<JournalIssueDate>
<DateFormat>00</DateFormat>
<Date>20080915</Date>
</JournalIssueDate>
</JournalIssue>
<EpubFormat>10</EpubFormat>
</HoldingsDetail>
</OnlinePackage>
</SerialVersion>
</HoldingsRecord>My mistake - thought you're looking for a general idea. Here's the working example:
CREATE OR REPLACE PROCEDURE import_test (i_result_file IN XMLTYPE DEFAULT XMLTYPE(bfilename('XMLDIR','my_test.xml'),nls_charset_id('ALT32UTF8')))
IS
xml_rec XMLTYPE;
v_index PLS_INTEGER;
v_rec_ref VARCHAR2(30);
BEGIN
v_index := 1;
WHILE i_result_file.Existsnode('/rec/HoldingsRecord['||To_Char(v_index)||']') > 0
LOOP
BEGIN
--- Get the line
xml_rec := i_result_file.Extract('/rec/HoldingsRecord['||To_Char(v_index)||']');
CASE WHEN i_result_file.Existsnode('rec/HoldingsRecord['||To_Char(v_index)||']/RecordReference') > 0
THEN v_rec_ref := xml_rec.extract('HoldingsRecord/RecordReference/text()').getStringVal();
DBMS_OUTPUT.put_line('v_rec_ref: '||v_rec_ref);
END CASE;
EXCEPTION WHEN OTHERS THEN
DBMS_OUTPUT.put_line('My Message: '||v_index||' '||SQLERRM);
END;
v_index := v_index + 1;
END LOOP;
END import_test;
and here is my_test.xml I have used:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<rec>
<HoldingsRecord>
<RecordReference>PQPMID:7358</RecordReference>
<NotificationType>00</NotificationType>
<SerialVersion>
<SerialVersionIdentifier>
<SerialVersionIDType>07</SerialVersionIDType>
<IDValue>1068624X</IDValue>
</SerialVersionIdentifier>
<SerialVersionIdentifier>
<SerialVersionIDType>01</SerialVersionIDType>
<IDTypeName>PMID</IDTypeName>
<IDValue>7358</IDValue>
</SerialVersionIdentifier>
<Title>
<TitleType>02</TitleType>
<TitleText>Pittsburgh Post - Gazette</TitleText>
</Title>
<Publisher>
<PublishingRole>01</PublishingRole>
<PublisherName>Post Gazette Publishing Company</PublisherName>
</Publisher>
<OnlinePackage>
<OnlineServiceName>ProQuest</OnlineServiceName>
<Website>
<WebsiteRole>03</WebsiteRole>
<WebsiteLink>http://proquest.umi.com/pqdweb</WebsiteLink>
</Website>
<HoldingsDetail>
<JournalIssue>
<JournalIssueRole>04</JournalIssueRole>
<JournalIssueDate>
<DateFormat>00</DateFormat>
<Date>19930118</Date>
</JournalIssueDate>
</JournalIssue>
<JournalIssue>
<JournalIssueRole>06</JournalIssueRole>
<JournalIssueDate>
<DateFormat>00</DateFormat>
<Date>20080915</Date>
</JournalIssueDate>
</JournalIssue>
<EpubFormat>10</EpubFormat>
</HoldingsDetail>
</OnlinePackage>
</SerialVersion>
</HoldingsRecord>
<HoldingsRecord>
<RecordReference>PQPMID:9875</RecordReference>
<NotificationType>00</NotificationType>
<SerialVersion>
<SerialVersionIdentifier>
<SerialVersionIDType>07</SerialVersionIDType>
<IDValue>1068624X</IDValue>
</SerialVersionIdentifier>
<SerialVersionIdentifier>
<SerialVersionIDType>01</SerialVersionIDType>
<IDTypeName>PMID</IDTypeName>
<IDValue>7358</IDValue>
</SerialVersionIdentifier>
<Title>
<TitleType>02</TitleType>
<TitleText>Pittsburgh Post - Gazette</TitleText>
</Title>
<Publisher>
<PublishingRole>01</PublishingRole>
<PublisherName>Post Gazette Publishing Company</PublisherName>
</Publisher>
<OnlinePackage>
<OnlineServiceName>ProQuest</OnlineServiceName>
<Website>
<WebsiteRole>03</WebsiteRole>
<WebsiteLink>http://proquest.umi.com/pqdweb</WebsiteLink>
</Website>
<HoldingsDetail>
<JournalIssue>
<JournalIssueRole>04</JournalIssueRole>
<JournalIssueDate>
<DateFormat>00</DateFormat>
<Date>19930118</Date>
</JournalIssueDate>
</JournalIssue>
<JournalIssue>
<JournalIssueRole>06</JournalIssueRole>
<JournalIssueDate>
<DateFormat>00</DateFormat>
<Date>20080915</Date>
</JournalIssueDate>
</JournalIssue>
<EpubFormat>10</EpubFormat>
</HoldingsDetail>
</OnlinePackage>
</SerialVersion>
</HoldingsRecord>
</rec> -
Migration of next_identity() from sybase 12 to oracle 10G
Hi,
What is the oracle equivalent for next_identity() in sybase.
Thanks and Regards,
Vinoth KannanHi Vinoth,
The OMWB does not migrate this function automatically.
next_identity() returns the next value to be used in an indentity column. You pass it the name of the table as a parameter. Example
T-SQL
SELECT next_identity(table1)
if table1 does not have an identity column then null is returned, otherwise the next identity value for that table is returned.
Oracle does not have identity columns, so the OMWB will migrate identity columns to a sequence and a trigger. This sequence will named SQ_<IdentityColumnName>.
So to emulate
next_indentity(<table_name>)
you may have to go
SQ_<IdentityColumnName>.CURRVAL + 1
Regards,
Dermot. -
Parse errors on 'white space' when migrating procs/triggers from Sybase
getting:
Error occurred on line nn:
oracle.mtg.sybase12.parser.ParseException:
Parse error at line nn, column 1.
Encountered:
looks like this happens for every proc/trigger that has a blank line at the end of its text.
anyone know of any fix/workaround for this?
thxHi Collierville,
The 'Repository' term referes to the Oracle schema/user where you told the OMWB to create its repository. You reference this schema when you log into the OMWB.
The OMWB created lots of tables to hold the captured and converted details of your database. Its this Oracle schema that you should run the script on using SQL Developer or SQL*Plus.
I tried your testcase with 10.1.0.4 and still cant produce an issue. I put a few new empty lines at the bottom as well. So something fishy is happening.
Due to not having information about your SWINT datatype the following is generated for me.
CREATE OR REPLACE FUNCTION swsp_greateq_zero(
fieldValue IN SWINT DEFAULT NULL)
RETURN INTEGER
AS
BEGIN
IF fieldValue < 0 THEN
BEGIN
RETURN 1;
END;
ELSE
BEGIN
RETURN 0;
END;
END IF;
END swsp_greateq_zero;
Just to note, We are releasing a Sybase 12 and Sybase 15 plugin for the new SQL Developer Migration Workbench in the next release, which will hopefully be early next year.
Regards,
Dermot -
Hi,
I am currently working in project where we need to migrate/point batch jobs to SQL server 2005. At this moment they are pointing to Sybase. Batch jobs are in .bat and .exe format. These jobs read in an external file, does some reformatting,
and then loads it into 2 sybase tables. These jobs are auto scheduled through Control-M application.
Any idea please ?
Thanks,
Chirag PatelChange your post to type 'Question' Chirag
You would need to at least change the connection strings, and how you access SQL Server, but typically code changes are necessary.
You unfortunately don't provide enough details. But it is not as trivial to just 'point' a bunch of jobs to a new target.
Arthur My Blog -
Are there Major Impacts Migrating from Sybase 12.x to Oracle 10g, 9i, or 8i
If anyone knows any websites on this subject or can help; I'd greatly appreciate it. Thanks
Rudy,
were there any errors reported on screen when you ran the SYBASE12_DSML_SCRIPT.BAT file ? If so, the data in the .DAT
files (which are generated by this script in the %ORACLE_HOME%\OMWB\DSML_SCRIPTS\Sybase12 directory)
may be incomplete or even corrupt and this may cause problems when the Workbench attempts to load them. The script
reports successes and errors to the screen while it runs and you may discover what the problem could be from these reports.
If the script does not report any errors then there should be some indication of what the problem is from the error.log
file which can be found in %ORACLE_HOME%\OMWB\Log or from an error/warning message sent to the progress
window in the Workbench. If you would like to send me the text of any errors you find to be reported or if you would like to
send me copies of the files generated on your machine by the DSML script, I would be happy to investigate the problem further
and report back to you.
Ragards,
Tom.
Maybe you are looking for
-
Transfer Safari bookmarks to another iphone help
Hi all, I am thinking about upgrading my iPhone 4 to a 5. However, as I use my current phone a lot for work when out and about, I have a lot of useful Safari bookmarks saved on it. I will need to transfer these bookmarks to a new phone. However, on m
-
Printing Colour Problems ...
I know this is a common cry for help, but I am having a dreadful time trying to understand colour profiles, despite spending a lot of time reading up on the subject. Here's my basic dilemma: I have calibrated my display (Apple 23" Cinema). I am using
-
"No audio output device is installed" on Satellite C655D-5120 running Windows 7 64-bit
Ever since I installed Windows 7 Professional 64-bit on my C655D-5120 laptop, I keep getting the message "no audio output device is installed." I have tried all the suggestions I have been able to find on the internet to install any audio output devi
-
Waiting for 1GB Data Promotion to be added
I don't know how long it has to take to add the 1GB Data promotion to my account?! I bought a new phone and renewed my contract for another 2 years on 9/19. I called on Friday 9/19, and one of the customer service reps had to submit a request for it
-
Starting weblogic as other than root
Hi, Is there a way to start weblogic with other than "root"? thanks! chuck