Help Required in Converting datatype from Microsoft SQL To Oracle
I Have one Table in Microsoft SQL,
Create Table sk_a(number(1000,1));
Now I want to create the same table with similar column in Oracle,
but Oracle datatype precision is only max 38, so please let me know the best way to do it,
Thanks,
Sunil . N
You want a 1000 numbers as precision? Wow.... huge numbers...
How would you call a number like that?
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111.1
Similar Messages
-
I want to convert date from Microsoft Access to Oracle.
I want to convert date from Microsoft Access to Oracle.
My Oracel date format is 21-Jul-2004 02:24:09 AM
I use sqlldr in Oracle 9i Database and I
write control file
load data
infile 'test.txt'
into table test
fields terminated by "," optionally enclosed by '"'
trailing nullcols
name,
birthday
data file 'test.txt' for input
"dao","21-Jul-2004 02:24:09 AM"
why did error? ORA-01843: not a valid month
Thank.replace birthday with
birthday "to_date(:birthday, 'DD-Mon-YYYY HH:MI:SS AM', 'NLS_LANGUAGE=''american''')"Of course, if your monthes are in German, then set the language to german (JUL=JUL but DEZ<>DEC)
Regards
Laurent -
Steps to create Universe from Microsoft SQL oder Oracle Database
Hi All,
i am looking for a document which describe the steps to create an Universe base on Microsoft SQL oder oracle database.
Thank you in advance
PatHi,
These links may be help for you:
http://www.bidw.org/business-objects/universe-design/getting-started-with-universe-design/
http://www.sap-businessobjects.info/universe-design.htm
All the Best,
Madhu... -
Help me please to migrate from MS SQL to Oracle
Hi all,
we are in process of migration from MS SQL to Oracle.
Please help me to perform the same in Oracle:
select number+1 as rowid,number*6+1 as rowbeg,number*6+6 as rowend
from master.dbo.spt_values
where type='P'
Our Oracle version:
select * from v$version
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for 64-bit Windows: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
5 rows selected.996831 wrote:
Here is another solution without "connect by":
select 1 as rnum, 1 as rowbeg, 6 as rowend from dual
union all
select rownum+1 as rnum,rownum*6+1 as rowbeg,rownum*6+6 as rowend
from all_objects
1
1
6
2
7
12
3
13
18
4
19
24
5
25
30
6
31
36
7
37
42
(et cetera).
This needs the user to have access on all_objects view and it will limit the result upto the numbers of objects returned by the all_objects view. -
Migration of the database from Microsoft SQL 2014 Express to Microsoft SQL 2012 Server
I posted a similar thread yesterday, and I realized that there was a serious typo.
Link: https://social.msdn.microsoft.com/Forums/sqlserver/en-US/b3e201ea-6c7c-43a4-8908-842b714ea451/migration-of-the-database-from-microsoft-sql-2014-express-to-microsoft-sql-2012-server?forum=sqlservermigration
Therefore, I made a decision to post another thread right now.
I am
writing to ask if there are any known issues when migration from MS SQL 2014 Express to MS SQL 2012 Server version. Are there any step-by-step instruction on how I can go about doing this?
Looking forward to your response. Thank you for your time.
Regards,
Jeff YooHello,
SQL Server 2012 setup program won’t allow you to perform a downgrade from SQL Server 2014 Express Edition. Backup/Restore
and Detach/Attach won’t help you either.
One option you have left is using SQL Server Import/Export Wizard as explained on the following article.
http://www.mytechmantra.com/LearnSQLServer/Downgrade_SQL_Server_Database_P1.html
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com -
Errors while migrating from Microsoft SQL Server 2005 to Oracle 9i
Hi All,
We are trying to completely move our application from Microsoft SQL Server 2005 Database to Oracle 9i. I am doing it using the latest version of Oracle SQL Developer (1.2 build 29.98).
When I right click my MSSQL server db and click "Capture Microsoft SQL server", it just shows a dialog with "Close" enabled.
Kindly help.
The migration Log has the following messages:
oracle.dbtools.metadata.persistence.PersistenceException: Unsupported feature
oracle.dbtools.metadata.persistence.PersistenceException: Unsupported feature
oracle.dbtools.metadata.persistence.PersistenceException: OALL8 is in an inconsistent state
oracle.dbtools.metadata.persistence.PersistenceException: Protocol violation
oracle.dbtools.metadata.persistence.PersistenceException: OALL8 is in an inconsistent state
oracle.dbtools.metadata.persistence.PersistenceException: Protocol violation
oracle.dbtools.metadata.persistence.PersistenceException: OALL8 is in an inconsistent state
oracle.dbtools.metadata.persistence.PersistenceException: Protocol violation
oracle.dbtools.metadata.persistence.PersistenceException: OALL8 is in an inconsistent state
oracle.dbtools.metadata.persistence.PersistenceException: Bigger type length than Maximum
oracle.dbtools.metadata.persistence.PersistenceException: Bigger type length than Maximum
oracle.dbtools.metadata.persistence.PersistenceException: OALL8 is in an inconsistent state
Error ocurred during capture: Protocol violation
oracle.dbtools.metadata.persistence.PersistenceException: OALL8 is in an inconsistent state
oracle.dbtools.metadata.persistence.PersistenceException: Protocol violation
oracle.dbtools.metadata.persistence.PersistenceException: OALL8 is in an inconsistent state
oracle.dbtools.metadata.persistence.PersistenceException: Protocol violation
oracle.dbtools.metadata.persistence.PersistenceException: OALL8 is in an inconsistent state
oracle.dbtools.metadata.persistence.PersistenceException: Bigger type length than Maximum
I cant figure out what do these messages mean.
Regards,
SandeepPasting the errors on logging page, if this is of any help:
SEVERE 150 0 oracle.dbtools.raptor.utils.NLSUtils Error loading nls:OALL8 is in an inconsistent state
SEVERE 151 1485 oracle.dbtools.raptor.utils.NLSUtils Error loading nls:Protocol violation
SEVERE 152 15 oracle.dbtools.raptor.utils.NLSUtils Error loading nls:OALL8 is in an inconsistent state
SEVERE 153 10954 oracle.dbtools.raptor.utils.NLSUtils Error loading nls:Protocol violation
SEVERE 154 15 oracle.dbtools.raptor.utils.NLSUtils Error loading nls:OALL8 is in an inconsistent state
SEVERE 155 2688 oracle.dbtools.raptor.utils.NLSUtils Error loading nls:Protocol violation
SEVERE 156 1140 oracle.dbtools.raptor.utils.NLSUtils Error loading nls:OALL8 is in an inconsistent state
SEVERE 158 62172 oracle.dbtools.raptor.utils.NLSUtils Error loading nls:OALL8 is in an inconsistent state
SEVERE 160 3672 oracle.dbtools.raptor.utils.NLSUtils Error loading nls:Protocol violation
SEVERE 161 63 oracle.dbtools.raptor.utils.NLSUtils Error loading nls:OALL8 is in an inconsistent state
SEVERE 162 0 oracle.dbtools.raptor.utils.NLSUtils Error loading nls:Protocol violation -
OLAP data from MS SQL to Oracle
Hi,
I am currently using Microsoft SQL server 2000 as our datawarehouse with Analytic services(OLAP data).
We are thinking of migrating to Oracle 10g. By using Migration Workbench, will it migrate my 3 dimensional data(OLAP) from MS SQL to Oracle (OLAP) ?
Thank you.
Best Regards,
Ian HoThis could happen if you are using improper LKM
So depending on your source and staging database you choose the corresponding LKM
for example:
If you are using MS SQL Server as your source and Oracle database as the staging database, then you should be using lKM SQL to Oracle -
Help calling a web service from pl/sql
Hi, i have a web service that is called from a php, i needed to do this but from pl sql:
this is the call of web service from php:
<?PHP
//Variables de prueba - Se tienen que tomar los valores de la base de datos, de la compra y el usuario
$p_id_emec=urlencode("33355555"); //Identificador del sitio dentro de Pago Fácil
$p_id_operacion=urlencode("151"); //Identificador unívoco de la compra en el sitio
$p_id_mone_ecom=urlencode("01"); //Identificador de moneda - '01'=pesos - '02=dolares
//Inicializa Variables de URL
$serviceName="Pago XX";
$protocol="http://";
// DESARROLLO
$ipUrl="desa.e-pagoxx.com";
$port=80;
//Llamada
$call="/2130/index.php";
//Abro la conexion al port
$URLsola = $protocol.$ipUrl;
//Concatenacion del string
$txtURL = $protocol.$ipUrl.$call;
$txtURL .="?p_id_emec=".$p_id_emec;
$txtURL .="&p_id_operacion=".$p_id_operacion;
$txtURL .="&p_id_mone_ecom=".$p_id_mone_ecom;
$txtURL = $txtURL;
//* Se comunica con el servidor, pasa los datos y recibe el HTML con el comprobante *//
$fp = fsockopen($ipUrl, $port, &$errno, &$errstr, 30);
if(!$fp)
echo "No me puedo comunicar con $serviceName";
exit;
else
$file=@fopen($URLsola,"r");
$pageData=file($txtURL);
for($i=0;$i<count($pageData);$i++)
$sText.=$pageData[$i];
@fclose($file);
@fclose($fp);
echo($sText);
?>
I need to call this webservice from pl sql
any ideas?
thanks!!Madhu BR wrote:
You might want to try the webservice call using utl_http specified here : http://orclpps.blogspot.com/2007/12/invoking-webservices-from-oracle-9i-or.html
Or even to expand on that to deal with responses larger than 32K...
-- skeleton code
PROCEDURE p_soap_request(p_username IN VARCHAR2, p_password IN VARCHAR2, p_proxy IN VARCHAR2) IS
soap_request VARCHAR2(30000);
soap_respond CLOB;
http_req utl_http.req;
http_resp utl_http.resp;
resp XMLType;
soap_err exception;
v_code VARCHAR2(200);
v_msg VARCHAR2(1800);
v_len number;
v_txt Varchar2(32767);
BEGIN
IF p_proxy IS NOT NULL THEN
UTL_HTTP.SET_PROXY(p_proxy);
END IF;
-- Define the SOAP request according the the definition of the web service being called
soap_request:= '<?xml version = "1.0" encoding = "UTF-8"?>'||
'<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">'||
' <SOAP-ENV:Body>'||
' <m:DownloadRequest xmlns:m="http://www.website.net/messages/GetDetails">'||
' <m:UserName>'||p_username||'</m:UserName>'||
' <m:Password>'||p_password||'</m:Password>'||
' </m:DownloadRequest>'||
' </SOAP-ENV:Body>'||
'</SOAP-ENV:Envelope>';
http_req:= utl_http.begin_request
( 'http://www.website.net/webservices/GetDetailsService.asmx'
, 'POST'
, 'HTTP/1.1'
utl_http.set_header(http_req, 'Content-Type', 'text/xml');
utl_http.set_header(http_req, 'Content-Length', length(soap_request));
utl_http.set_header(http_req, 'Download', ''); -- header requirements of particular web service
utl_http.write_text(http_req, soap_request);
http_resp:= utl_http.get_response(http_req);
utl_http.get_header_by_name(http_resp, 'Content-Length', v_len, 1); -- Obtain the length of the response
FOR i in 1..CEIL(v_len/32767) -- obtain response in 32K blocks just in case it is greater than 32K
LOOP
utl_http.read_text(http_resp, v_txt, case when i < CEIL(v_len/32767) then 32767 else mod(v_len,32767) end);
soap_respond := soap_respond || v_txt; -- build up CLOB
END LOOP;
utl_http.end_response(http_resp);
resp:= XMLType.createXML(soap_respond); -- Convert CLOB to XMLTYPE
END; -
Script task to convert output from a sql query into send mail task body formatting
SSIS 2008R2 Version
Code from script task
Microsoft SQL Server Integration Services Script Task
Write scripts using Microsoft Visual C# 2008.
The ScriptMain is the entry point class of the script.
using System;
using System.Data;
using Microsoft.SqlServer.Dts.Runtime;
using System.Windows.Forms;
namespace ST_29dd6843bd6c4aee9b1656c1bbf55ba8.csproj
[System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
#region VSTA generated code
enum ScriptResults
Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
#endregion
public void Main()
Variables varCollection = null;
string header = string.Empty;
string message = string.Empty;
Dts.VariableDispenser.LockForWrite("User::gsEmailMessage");
Dts.VariableDispenser.LockForWrite("User::gsWebserviceName");
Dts.VariableDispenser.LockForWrite("User::gsNoOfCallsInADay");
Dts.VariableDispenser.LockForWrite("User::gsCalledBySystem");
Dts.VariableDispenser.GetVariables(ref varCollection);
//Set the header message for the query result
if (varCollection["User::gsEmailMessage"].Value == string.Empty)
header = "Hi, Count is greater then 50 :\n\n";
//header = "Execute SQL task output sent using Send Email Task in SSIS:\n\n\n";
header += "----------------------------------------------------------------------------------------------------------------------" + "\n";
header += string.Format("{0}\t\t\t\t{1}\t\t{2}\n", "WebService Name", "No Of Calls In A Day", "Called By System");
header += "----------------------------------------------------------------------------------------------------------------------" + "\n";
varCollection["User::gsEmailMessage"].Value = header;
//Format the query result with tab delimiters
message = String.Format("<HTML><BODY><P>{0}</P><P>{1}</P><P>{2}</P></BODY></HTML>",
varCollection["User::gsWebserviceName"].Value,
varCollection["User::gsNoOfCallsInADay"].Value,
varCollection["User::gsCalledBySystem"].Value);
varCollection["User::gsEmailMessage"].Value = varCollection["User::gsEmailMessage"].Value + message + "\n";
Dts.TaskResult = (int)ScriptResults.Success;
Above code will return data in below format and then i send this output in aemail using send mail task.
Hi, count is greater then 50 :
WebService Name
No Of Calls In A Day Called By System
WebServiceone 1
Internetbutiken
WebServiceGetdetailstwo 1
Internetbutiken
Servicenamethree 2
MOB
As you can see above code is not in align as if we service name is shorter then 2nd column get disallign and its not look good.I need output should be like below.
Hi, count is greater then 50 :
WebService Name
No Of Calls In A Day Called By System
WebServiceone 1
Internetbutiken
WebServiceGetdetailstwo 1
Internetbutiken
Servicenamethree 2
MOB
Please suggest something...
Thanks
SR_MCTSSee code explained here
http://microsoft-ssis.blogspot.in/2013/08/sending-mail-within-ssis-part-2-script.html
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
This will not help.As I am not creating smtp connectin ,send from ,send to in script task.I am just creating email body from sql output. -
Error Message from Microsoft SQL Server Management Studio
I have problem editing the views that I created. I never have this problem before and I don't know if
I have touched something on the pane that alters my viewing on Microsoft SQL Server Management Studio. For example, if I want to edit the top 200 rows of my view called dbo.sl_admission_reg9, it will give me this error:
Invalid prefix of suffix characters (MS Viual Database Tools).
Please help.
Thank you very much.
SallyAre you trying to edit the top 200 rows of a SQL Server 2012 database using the 2008 R2 SQL Server Management
Stud? If so you just need to upgrade SQL Server Management Studio to 2012 or edit the rows using a SQL query.
[Personal Site] [Blog] [Facebook] -
Help needed in converting Excel from XML file
Hi Can anyone help me in converting XML in to Excel.
Thanx,
Ananth.well, that still isn't much to go off of. I give it a try though.
I guess you want to parse out the relevent data out of the xml file and then decide on your favorite delimated file format for Excel. Two popular formats are comma delimated:
"info1","info2","info3","info4"
and tab delimeted:
info <tab> info2 <tab> info3 <tab> info4
Excel should be able to unsestand either of these formats. -
Help required to get data from Cash Mgt
Hi
I need help to get following data from cash managemment .
Bank Name
Branch
Account#
Date
cheque#/Ref
Amount Direct Debited by bank
Amount Direct credeted by bank.
Kindly help
RegardsHello.
See if this helps. When the Amount column shows a negative number it represents a Debit.
select b.bank_account_name "Bank Account" ,
bb.bank_branch_name "Branch",
b.bank_account_num "Bank Acc Num",
l.trx_date "Date",
l.trx_type "Type",
l.trx_text "Description",
l.amount "Amount"
from ce_statement_headers_all h,
ce_statement_lines l,
ap_bank_accounts_all b,
ap_bank_branches bb
where b.bank_account_id = h.bank_account_id
and l.statement_header_id = h.statement_header_id
and bb.bank_branch_id = b.bank_branch_id
and b.bank_account_id = <bank_account_id>
and h.statement_number = <'statement number'>
Octavio -
Insert Data from Oracle to MS-SQL and back from MS-SQL to Oracle !
Dear Gurus,
Good day,
I have Oracle db 10.1.0.2 on Sun Solaris 9 and want it to communicate online with an MS-SQL server DB on a windows machine.
Oracle states that i can use the TG4MSQL ( Transparent Gateway for MS-SQL ).
The issue here that this TG4MSQL needs to be installed on a db on WINDOWS then make a DB link from this db to MS-SQL as well as to the original oracle db because TG4MSQL is not available on UNIX ( only in 11g ) !
Is there any way to do this 2-way insert from/to MS-QL & Oracle without creating a new dummy DB for TG4MSQL?
Is there any other ways or methods?
Please advise,
Appreciate your help.
Cheers,
FirasI think you must have mis-read or mis-understood about the Transparent Gateway. I've not worked with the one for MSSQL but have for DB2.
The OTG installs on the server with the 'foreign' (non-Oracle) database. It simply acts as a client to that database, presenting an Oracle interface on the other side - somewhat analogous to ODBC presenting a common interface for connections to various db or db-like products.
As such, it only makes sense that the OTG for MSSQL would only be available for Windows ... Windows is the only platform that MSSQL runs on.
When I was using the OTG for DB2, we simply installed the OTG on the Z/OS system (IBM mainframe) hosting the DB2, then defined a dblink in the Oracle database (that one was running on Windows) to point to it. As far as the Oracle db was concerned, it had no reason to know that the link was pointing to a non-Oracle db. -
Sending Email from PL/SQL on Oracle 8.05...
Hi,
I need to send an email from PL/SQL, my database is on Windows
server and it's 8.05 (sorry we're late on upgrading:(...)
Thanks in advance
CecmliaHello,
Here is sample code for sending mail using PL/SQL.
This PL/sql Procedure sends mails using SMTP server.
Author - Mr. Adinath R. Kamode
Date - 08/05/2001
procedure sendmail is
c utl_smtp.connection; -- Connectio type variable
v_from varchar2(200);
v_from1 varchar2(200);
v_to varchar2(200);
PROCEDURE send_header(name IN VARCHAR2, header IN VARCHAR2)
AS
BEGIN
-- Generates header data required from mail
utl_smtp.write_data(c, name || ': ' || header ||
utl_tcp.CRLF);
END;
begin
c := utl_smtp.open_connection('smtp_server.pc150'); --
Specify your SMTP -- server
address here
utl_smtp.helo(c, 'pc150');
-- Define sender and receiver
utl_smtp.mail(c, '[email protected]');
utl_smtp.rcpt(c, '[email protected]');
utl_smtp.open_data(c);
send_header
('From','Sender<[email protected]>');
send_header
('To', 'Recipient<[email protected]>');
send_header('Subject', 'Hello');
utl_smtp.write_data(c, utl_tcp.CRLF || 'Hello, world!');
utl_smtp.close_data(c);
utl_smtp.quit(c);
end;
Adi -
Migration from MS SQL to Oracle
We have developed our application with VB.net and MS SQL server (that is also loaded with a big number of stored procedures), the application is also using Web services and xml and other technologies.
Currently my issue is, that many of our potential clients demand for Oracle server at the back-end, I need a sound tool to migrate from MS SQL to OracleThe thing to do is check out the Migration Workbench.
Cheers, APC
Maybe you are looking for
-
My iphone is less than one year old. Just in the last two weeks it keeps crashing out of applications including text messages, dial pad, notes, calender etc.I am lucky if i get upto 2 minutes without it closing on me. It closes to home screen. Please
-
Prpblem with 'BAPI_BUPA_CENTRAL_CHANGE'
Dear friends I am updating a field using the bapi_bupa_central_change bapi. I m updating but000 tables xdele archive flag indicator to yes (x). My problem is i am failed to update the table. would you like to tell me where i am making mistakes.. an
-
Api_civ.dll functions definition
Good evening, I currently use an ARINC PXI Board : ACX429-3U-8, I configure the board through a NI TestStand program with the library "api_civ.dll", but I have to use the functions with a name finishing by CVI ( example: Api429CloseCvi )and I can onl
-
Receiving this error when exporting to pdf Server Error in '/Reports' Application. For more information about this error navigate to the report server on the local server machine, or enable remote errors Description: An unhandled exception occurred d
-
What is Error 2813 while trying to install my Airport Extreme Base Station(A1143/MA073LL/A)? and How can I fix it? Thanks