<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8807732759766156907</id><updated>2011-09-29T02:27:48.583-07:00</updated><category term='plsql'/><category term='utl_dbws'/><category term='ssl http server oracle https user  authentication cretificate'/><category term='java'/><category term='web'/><category term='rman migrate database oracle windows linux'/><category term='sftp'/><category term='https'/><category term='utl_http'/><category term='service'/><category term='ftp'/><category term='database'/><category term='oracle'/><title type='text'>Oracle at Work</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://frohikyoracle.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8807732759766156907/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://frohikyoracle.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Pedro Leite</name><uri>http://www.blogger.com/profile/06419007233234893524</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8807732759766156907.post-1221807917360857510</id><published>2009-09-10T13:24:00.000-07:00</published><updated>2009-09-10T13:29:35.850-07:00</updated><title type='text'>No time...</title><content type='html'>Hello there!&lt;br /&gt;&lt;br /&gt;It's been quite a while since I post anything...It's been hard to find the time and energy that this blog deserves...but I should post something during the next weekend.&lt;br /&gt;&lt;br /&gt;I have a couple of important issues that deserve a well written post..and hopefully will help the readers on similar issues.&lt;br /&gt;&lt;br /&gt;Until now the "&lt;a href="http://frohikyoracle.blogspot.com/2008/12/ftp-and-sftp-on-database.html"&gt;FTP and SFTP on the Database..."&lt;/a&gt; post has generated a lot of email requests and I'm sorry if sometimes I take a of lot of time responding...but well...free time is so hard to find! But until now, more later or more sooner, I've replied all the emails...and keep'em coming :)&lt;br /&gt;&lt;br /&gt;Well...look out for a new post with some fresh Oracle knowledge in the next few days...&lt;br /&gt;&lt;br /&gt;Until then...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://frohikyoracle.blogspot.com/2008/12/ftp-and-sftp-on-database.html"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8807732759766156907-1221807917360857510?l=frohikyoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://frohikyoracle.blogspot.com/feeds/1221807917360857510/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8807732759766156907&amp;postID=1221807917360857510' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8807732759766156907/posts/default/1221807917360857510'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8807732759766156907/posts/default/1221807917360857510'/><link rel='alternate' type='text/html' href='http://frohikyoracle.blogspot.com/2009/09/no-time.html' title='No time...'/><author><name>Pedro Leite</name><uri>http://www.blogger.com/profile/06419007233234893524</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8807732759766156907.post-8190193080995599322</id><published>2009-02-10T16:30:00.000-08:00</published><updated>2009-02-10T17:02:49.882-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rman migrate database oracle windows linux'/><title type='text'>Database Migration From Windows to Linux Using RMAN</title><content type='html'>This task was on the "todo" pile for a awhile now and I had already tried it once. We have an old database on a Windows XP pretty close to kernel death and we wanted desperaly to deploy it on a Enterprise Linux without losing any data and if possible not have to create the schemas.&lt;br /&gt;Due to time limits I had little success on the first attempt, although I now see that I was not that far off!&lt;br /&gt;&lt;br /&gt;My second attempt was mainly trigged by a this &lt;a href="http://blogs.oracle.com/AlejandroVargas/2008/10/database_migration_from_window.html"&gt;post &lt;/a&gt;on &lt;span style="font-size:100%;"&gt;&lt;a href="http://blogs.oracle.com/AlejandroVargas/" accesskey="1"&gt;Alejandro Vargas' Blog.&lt;/a&gt; His guide is based on the RMAN command &lt;a href="http://download-uk.oracle.com/docs/cd/B19306_01/backup.102/b14191/dbxptrn.htm"&gt;CONVERT DATABASE . &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It worked out great for my case, but you can find alternatives (Metalink ID: &lt;a href="https://metalink2.oracle.com/metalink/plsql/f?p=130:14:2829182723063087646::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,733205.1,1,1,1,helvetica"&gt;733205.1&lt;/a&gt;):&lt;br /&gt;&lt;/span&gt;&lt;ol dir="ltr"&gt;&lt;li&gt;       &lt;div style="margin-right: 0px;"&gt;Export / Import to include the use of Datapump facilities. all versions support Export/Import but for Datapump 10.1.0.2 or higher is required &lt;/div&gt;     &lt;/li&gt;&lt;li&gt;       &lt;div style="margin-right: 0px;"&gt;Transportable Tablespaces 10G or Later &lt;/div&gt;     &lt;/li&gt;&lt;li&gt;       &lt;div style="margin-right: 0px;"&gt;RMAN Convert Database functions. 10G or Later &lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;The third has the advantage of being multi-schema, that it is to say, that you don't need to create the users on the new database, which was a task requirement on my case.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://blogs.oracle.com/AlejandroVargas/" accesskey="1"&gt;&lt;span style="font-size:100%;"&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:100%;"&gt;&lt;a href="http://blogs.oracle.com/AlejandroVargas/" accesskey="1"&gt;Alejandro Vargas'&lt;/a&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;span style="font-size:100%;"&gt;post is pretty good and straigh forward. RMAN allows you to generated converted datafiles, along with a new control file and a transport script. These files can be then sent to the the new machine and with some editing on the script and control file, the new instance is created with the all the data from the previous one.&lt;br /&gt;&lt;br /&gt;The most touble you may find is edting the transport script. In my case I couldn't understand why the script wouldn't upload the users datafile, along with the users. I later understood: Oracle was pretty much foling Oracle!!&lt;br /&gt;&lt;br /&gt;Any way, Alejandro's receipe is a great help, and based on the Metalinks, it gave me the extra information I just need to complete this important task.&lt;br /&gt;&lt;br /&gt;Any issue feel free to email me.&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://blogs.oracle.com/AlejandroVargas/" accesskey="1"&gt;&lt;/a&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8807732759766156907-8190193080995599322?l=frohikyoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://frohikyoracle.blogspot.com/feeds/8190193080995599322/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8807732759766156907&amp;postID=8190193080995599322' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8807732759766156907/posts/default/8190193080995599322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8807732759766156907/posts/default/8190193080995599322'/><link rel='alternate' type='text/html' href='http://frohikyoracle.blogspot.com/2009/02/database-migration-from-windows-to.html' title='Database Migration From Windows to Linux Using RMAN'/><author><name>Pedro Leite</name><uri>http://www.blogger.com/profile/06419007233234893524</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8807732759766156907.post-3014741923438491924</id><published>2008-12-15T09:27:00.000-08:00</published><updated>2008-12-15T09:47:38.498-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ssl http server oracle https user  authentication cretificate'/><title type='text'>Enabling SSL for Oracle HTTP Server</title><content type='html'>Enabling SSL for the HTTP server is a relative simple task, and the essential steps are described next.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;1) Edit the "opmn.xml" file&lt;/span&gt; (don't forget to make a backup copy).  You can edit this file via the OEM or manually (via shell).         &lt;br /&gt;Access the Oracle Entreprise Manager (http://&lt;span style="font-style: italic;"&gt;your_server&lt;/span&gt;:1810) and at the bottom of the page, click the link that reads "Process Management".&lt;br /&gt;In the "opmn.xml" file, change the value for the "HTTP_Server" "&lt;span style="font-weight: bold;"&gt;start-mode&lt;/span&gt;" to "&lt;span style="font-weight: bold;"&gt;ssl-enabled&lt;/span&gt;" and click Apply.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2)Edit the "ssl.conf" file.&lt;/span&gt;&lt;br /&gt;This file is accessible via the OEM on the &lt;span style="font-style: italic; font-weight: bold;"&gt;HTTP_Server &gt; Administration &gt; Advanced Server Properties&lt;/span&gt; &lt;span style="font-style: italic; font-weight: bold;"&gt;&gt; ssl.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Just above the &lt;/virtualhost&gt; closing tag, enter the following directives:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;RewriteEngine on&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;RewriteOptions inherit &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In this same file find the line that reads "&lt;span style="font-weight: bold;"&gt;#SSLVerifyClient require&lt;/span&gt;", and uncomment it (delete the "#").&lt;br /&gt;&lt;br /&gt;Finally change the "&lt;span style="font-weight: bold;"&gt;SSLWallet file&lt;/span&gt;" value to $ORACLE_HOME/oca/wallet/ssl and click the Apply button after finishing your edit.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3) Reset the OCA SSL Wallet password&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Run the following command on the linux shell:&lt;br /&gt;&lt;br /&gt; $ORACLE_HOME/oca/bin/./ocactl setpasswd -type CASSL&lt;br /&gt;&lt;br /&gt;Enter the OCA administrators password.&lt;br /&gt;&lt;br /&gt;Enter the new wallet password.&lt;br /&gt;&lt;br /&gt;Confirm the new wallet password.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;4) Edit the Wallet.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now that you have the wallet's password open it using the Oracle Wallet Manager and insert as a trusted certificate the CA certificate you created.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;5) Import your user certificate to Firefox/IE.&lt;/span&gt;&lt;br /&gt;You can now access your website through a secure channel and using user authentication via  digital certificate.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note: this post assumes that you have successfully create a CA certificate and a user certificate signed by the CA. I recommend using OpenSSL. In the next few days I'll post on OpenSSL focusing on this issue. Feedback is more than welcomed!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8807732759766156907-3014741923438491924?l=frohikyoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://frohikyoracle.blogspot.com/feeds/3014741923438491924/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8807732759766156907&amp;postID=3014741923438491924' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8807732759766156907/posts/default/3014741923438491924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8807732759766156907/posts/default/3014741923438491924'/><link rel='alternate' type='text/html' href='http://frohikyoracle.blogspot.com/2008/12/enabling-ssl-for-oracle-http-server.html' title='Enabling SSL for Oracle HTTP Server'/><author><name>Pedro Leite</name><uri>http://www.blogger.com/profile/06419007233234893524</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8807732759766156907.post-1137679130560312586</id><published>2008-12-07T04:06:00.000-08:00</published><updated>2008-12-08T03:18:19.416-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='plsql'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='ftp'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><category scheme='http://www.blogger.com/atom/ns#' term='sftp'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>FTP and SFTP on the Database...</title><content type='html'>When designing your application with an Oracle database, you may find more productive to trigger FTP jobs from inside the database itself.&lt;br /&gt;&lt;br /&gt;If you rely on simple FTP protocol, you can use two main approaches:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Build a Java procedure to run shell scripts (with a PL/SQL wrapper), like the one available &lt;a href="http://www.oracle-base.com/articles/8i/ShellCommandsFromPLSQL.php"&gt;here&lt;/a&gt;, and invoke a third party FTP software. This option has the advantage of less code to manage, but of course, you will have to depend on third party software, which depending on your application's context may be an unwanted feature.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Develop a pure PL/SQL package to send and receive files. Using the  &lt;a href="http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96612/u_tcp.htm"&gt;UTL_TCP&lt;/a&gt; and &lt;a href="http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96612/u_file.htm"&gt;UTL_FILE&lt;/a&gt; packages, you can easily implemente a FTP API. Even easier is using an already implemented API, like the one available on &lt;a href="http://www.oracle-base.com/articles/9i/FTPFromPLSQL9i.php"&gt;Oracle-Base&lt;/a&gt; and the &lt;a href="http://www.chrispoole.co.uk/apps/xutlftp.htm"&gt;&lt;span style="font-family:Tahoma;"&gt;XUTL_FTP&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:Tahoma;"&gt; &lt;/span&gt;&lt;span style="font-family:Tahoma;"&gt;package. You may find more examples throughout the Oracle Bloggers or on the OTN network.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;Now, if your application is evolving, and you now wish to use SFTP directly from the database, the PL/SQL native packages don't allow you to implemente a SFTP API, like the FTP APIs shown above.&lt;br /&gt;&lt;br /&gt;First of all, do not confuse &lt;a href="http://en.wikipedia.org/wiki/SSH_file_transfer_protocol"&gt;SFTP&lt;/a&gt; with &lt;a href="http://en.wikipedia.org/wiki/FTPS"&gt;FTPS&lt;/a&gt;. &lt;a href="http://en.wikipedia.org/wiki/SSH_file_transfer_protocol"&gt;SFTP&lt;/a&gt; is based on the SSH protocol, and is called SFTP simply merely to "marketing techniques" by the SSH group. FTPS is the secure version of the original FTP protocol.&lt;br /&gt;&lt;br /&gt;In my case I was called to implement a SFTP API for the database. Well, the lack of PL/SQL infrastructure to do so I turned to JAVA! Using the &lt;a href="http://show.docjava.com/book/cgij/jdoc/net/ssh/jsch/ChannelSftp.html#put%28java.lang.String,%20java.lang.String,%20net.ssh.jsch.SftpProgressMonitor,%20int%29"&gt;ChannelSFTP&lt;/a&gt; class of the &lt;a href="http://www.jcraft.com/jsch/"&gt;JSch&lt;/a&gt; package&lt;a href="http://www.jcraft.com/jsch/"&gt;&lt;/a&gt;, I easily implemented a simple API to send and receive files via SFTP.&lt;br /&gt;Finally with the .jar deploy I loaded my package to the Oracle database (after loading the JSch jar and the Jzlib jar) and build the PL/SQL wrappers.&lt;br /&gt;&lt;br /&gt;The first battery of tests demonstrated: success! SFTP from the database!&lt;br /&gt;In conclusion, Oracle's architecture allows multiple solutions to a problem, and with Java there's always a way out!&lt;br /&gt;If you want the code for the Java SFTP API or/and PL/SQL wrappers fell free to email me.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8807732759766156907-1137679130560312586?l=frohikyoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://frohikyoracle.blogspot.com/feeds/1137679130560312586/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8807732759766156907&amp;postID=1137679130560312586' title='44 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8807732759766156907/posts/default/1137679130560312586'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8807732759766156907/posts/default/1137679130560312586'/><link rel='alternate' type='text/html' href='http://frohikyoracle.blogspot.com/2008/12/ftp-and-sftp-on-database.html' title='FTP and SFTP on the Database...'/><author><name>Pedro Leite</name><uri>http://www.blogger.com/profile/06419007233234893524</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>44</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8807732759766156907.post-471307826046260506</id><published>2008-12-07T04:03:00.001-08:00</published><updated>2008-12-08T03:18:48.150-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='service'/><category scheme='http://www.blogger.com/atom/ns#' term='plsql'/><category scheme='http://www.blogger.com/atom/ns#' term='utl_http'/><category scheme='http://www.blogger.com/atom/ns#' term='https'/><category scheme='http://www.blogger.com/atom/ns#' term='web'/><category scheme='http://www.blogger.com/atom/ns#' term='utl_dbws'/><title type='text'>Using the UTL_DBWS Package</title><content type='html'>&lt;p&gt;In my previous post, I mentioned the UTL_DBWS package, that provides a ready to use method to consume web services from the database itself, using pure PL/SQL.&lt;/p&gt; &lt;p&gt;Although you only need PL/SQL to consume, the package itself is based on a couple of java classes.&lt;/p&gt; &lt;p&gt;If you’re using a 10.1 or 10.2 database, the PL/SQL code is already installed, but the Java package isn’t! This will cause an error when using the package to establish a connection to the web services, complaying that a particular Java class does not exist&lt;/p&gt; &lt;p&gt;To correct this, get the dbws callout utility. You can download it &lt;a target="_blank" href="http://www.oracle.com/technology/sample_code/tech/java/jsp/dbwebservices.html"&gt;here&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Then, apply it to the database using the following commands:&lt;/p&gt; &lt;p&gt;&lt;i&gt;loadjava -u user/userpass -r -v -f -s -grant public -noverify -genmissing dbwsa.jar&lt;br /&gt;&lt;br /&gt;loadjava -u user/userpass -r -v -f -s -grant public -noverify -genmissing dbwsclient.jar&lt;/i&gt;&lt;/p&gt; &lt;p&gt;After this, the PL/SQL package should now function correctly.&lt;/p&gt; &lt;dl&gt;&lt;dt&gt;Here are a couple of web services to test your code, if do not have any one available:&lt;/dt&gt;&lt;/dl&gt; &lt;ul&gt;&lt;li&gt; &lt;a href="http://www.xmlme.com/WSShakespeare.asmx" target="_blank"&gt;Shakespeare Web Service&lt;/a&gt; &lt;/li&gt;&lt;li&gt; &lt;a href="http://ws2.fraudlabs.com/mailboxvalidator.asmx?op=MailBoxValidator" target="_blank"&gt;mailboxvalidator Web Service&lt;/a&gt; &lt;/li&gt;&lt;li&gt; &lt;a href="http://interpressfact.net/webservices/getjoke.asmx" target="_blank"&gt;getJoke Web Service&lt;/a&gt; &lt;/li&gt;&lt;li&gt; &lt;a href="http://www.webservicex.net/periodictable.asmx" target="_blank"&gt;periodictable Web Service&lt;/a&gt; &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.dataaccess.com/webservicesserver/numberconversion.wso" target="_blank"&gt;Number Conversion Service&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8807732759766156907-471307826046260506?l=frohikyoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://frohikyoracle.blogspot.com/feeds/471307826046260506/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8807732759766156907&amp;postID=471307826046260506' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8807732759766156907/posts/default/471307826046260506'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8807732759766156907/posts/default/471307826046260506'/><link rel='alternate' type='text/html' href='http://frohikyoracle.blogspot.com/2008/12/using-utldbws-package.html' title='Using the UTL_DBWS Package'/><author><name>Pedro Leite</name><uri>http://www.blogger.com/profile/06419007233234893524</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8807732759766156907.post-964914175524468761</id><published>2008-12-07T04:02:00.001-08:00</published><updated>2008-12-08T03:19:12.655-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='plsql'/><category scheme='http://www.blogger.com/atom/ns#' term='utl_http'/><category scheme='http://www.blogger.com/atom/ns#' term='https'/><category scheme='http://www.blogger.com/atom/ns#' term='utl_dbws'/><title type='text'>Consuming Web Services using PL/SQL</title><content type='html'>&lt;p&gt;For the last couple of days..I’ve been studying how to consume web services within the Oracle database using PL/SQL..&lt;/p&gt; &lt;p&gt;A quick glance at my personal library (Google!)…led me to conclude that there are two major ways to do this:&lt;/p&gt; &lt;ul&gt;&lt;li&gt; &lt;a target="_blank" href="http://www.oracle-base.com/articles/9i/ConsumingWebServices9i.php"&gt;Build your own SOAP API using the UTL_HTTP&lt;/a&gt; package for the HTTP requests (mandatory for anyone using 9i or older) ;&lt;/li&gt;&lt;li&gt; &lt;a href="http://www.oracle-base.com/articles/10g/utl_dbws10g.php" target="_blank"&gt;Use the UTL_DBWS package&lt;/a&gt; available in 10g that provides all the essential methods to consume web services&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;In my particular case I’m building my own API, solely because I couldn’t consume the desired web service via HTTPS.&lt;/p&gt; &lt;p&gt;I lost a lot of time searching how to consume a web service over HTTPS using the UTL_DBWS package, with little success, and frustrated I decided to go with the first solution.&lt;/p&gt; &lt;p&gt;Using the UTL_HTTP package with a Oracle Wallet, I successfully consumed web service over HTTPS with little effort. This was achieved using the following procedure, before the HTTP request:&lt;/p&gt; &lt;p&gt;&lt;a target="_blank" href="http://www.cs.uvm.edu/oracle9doc/appdev.901/a89852/utl_ht21.htm"&gt;utl_http.SET_WALLET(your_wallet_path, your_wallet_pass);&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Pretty simple and straight forward…&lt;/p&gt; &lt;p&gt;I’ll post more related code tomorrow from my PC at work..&lt;/p&gt; &lt;p&gt;Meanwhile I started working on FTP and SFTP (not confuse with FTPS) from the database, which I’ll post some examples in the next days!&lt;/p&gt; &lt;p&gt;Any doubts or feedback be sure to comment or send me an e-mail!&lt;/p&gt;                                                                                                                                                                                                                                                   &lt;div style="font-size: 10px; text-align: left;"&gt;&lt;a href="http://frohikyoracle.tumblr.com/post/56310959/consuming-web-services-using-pl-sql#disqus_thread"&gt;1 Comment&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8807732759766156907-964914175524468761?l=frohikyoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://frohikyoracle.blogspot.com/feeds/964914175524468761/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8807732759766156907&amp;postID=964914175524468761' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8807732759766156907/posts/default/964914175524468761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8807732759766156907/posts/default/964914175524468761'/><link rel='alternate' type='text/html' href='http://frohikyoracle.blogspot.com/2008/12/consuming-web-services-using-plsql.html' title='Consuming Web Services using PL/SQL'/><author><name>Pedro Leite</name><uri>http://www.blogger.com/profile/06419007233234893524</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8807732759766156907.post-5284621187054309128</id><published>2008-12-07T04:01:00.000-08:00</published><updated>2008-12-07T04:02:21.572-08:00</updated><title type='text'>Starting....</title><content type='html'>&lt;div class="regular"&gt;                         &lt;h2&gt;&lt;a href="http://frohikyoracle.tumblr.com/post/55751618/starting"&gt;&lt;/a&gt;Hi there…&lt;/h2&gt;                          &lt;p&gt;For the last few months, I’ve working as ORACLE developer and doing some DBA related tasks….&lt;/p&gt;  &lt;p&gt;Since I’ve come across some interesting issues…often not exposed on the web as they should…simply not concise enough…or perhaps to serve as reference to future developers…since I have found personal blogs about Oracle to be very useful…&lt;/p&gt; &lt;p&gt;So…I’m gonna start my own blog…to keep as a referrence to myself…and hopefully to help others…&lt;/p&gt;                     &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8807732759766156907-5284621187054309128?l=frohikyoracle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://frohikyoracle.blogspot.com/feeds/5284621187054309128/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8807732759766156907&amp;postID=5284621187054309128' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8807732759766156907/posts/default/5284621187054309128'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8807732759766156907/posts/default/5284621187054309128'/><link rel='alternate' type='text/html' href='http://frohikyoracle.blogspot.com/2008/12/starting.html' title='Starting....'/><author><name>Pedro Leite</name><uri>http://www.blogger.com/profile/06419007233234893524</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
