Laman Utama Tanya Wiki English Artikel Komuniti E-Mel Ringtones Search

Bantuan | Carian | Ahli | Kalendar

Google

Selamat Datang ( Log In | Daftar )

 
Reply to this topicStart new topic
Cx_oracle --> Success! Yeaahoooooooo, cx_Oracle runs !!
LINUXnewbie888
post Nov 23 2007, 11:54 AM
Kiriman #1


Ahli
*

Grup: Learning
Kiriman: 23
Penyertaan: 30-October 07
Dari: Kuala Lumpur
Ahli ke- 37,614



Hi all,

I would like to thank for those who had contributed their opinion,ideas, advice and support in order to make cx_Oracle runs alive on my machine.

At last, it works! And now my bos starts to smile again ... ;-p


Thank you all ... (including Anthonu Tuininga -- the developer of cx_Oracle !)


Regards,
Linuxnewbie888 rolleyes.gif










Go to the top of the page
 
+Quote Post
unexistance
post Nov 23 2007, 04:33 PM
Kiriman #2


Ahli Rajin
*****

Grup: Members
Kiriman: 1,185
Penyertaan: 29-March 06
Dari: 46350
Ahli ke- 15,794



so can you kindly share the solution with all of us?


--------------------
PC - Vista-Basic-SP1
Laptop - LinuxMint-Daryna
Go to the top of the page
 
+Quote Post
LINUXnewbie888
post Nov 26 2007, 12:50 PM
Kiriman #3


Ahli
*

Grup: Learning
Kiriman: 23
Penyertaan: 30-October 07
Dari: Kuala Lumpur
Ahli ke- 37,614



Hi all,

sesiapa yg interested nak tau camner I settle this problem, please kindly email me at qui_qoeq888@yahoo.com and i'll give the full instruction/installation guide..
thanks..
:-)
Go to the top of the page
 
+Quote Post
Firestarter
post Nov 26 2007, 01:58 PM
Kiriman #4


Ahli Rajin
****

Grup: Members
Kiriman: 743
Penyertaan: 2-December 06
Dari: Paka - Bangi - Kuantan
Ahli ke- 21,529



Post je kat sini.


--------------------
Java Specialist Programmer
programming+bisnes logic=headche
Go to the top of the page
 
+Quote Post
unexistance
post Nov 26 2007, 03:48 PM
Kiriman #5


Ahli Rajin
*****

Grup: Members
Kiriman: 1,185
Penyertaan: 29-March 06
Dari: 46350
Ahli ke- 15,794



i see, when you got a problem, u share with us, when u have solve it, just keep it quite..

that's good..


--------------------
PC - Vista-Basic-SP1
Laptop - LinuxMint-Daryna
Go to the top of the page
 
+Quote Post
hairulfadly
post Nov 26 2007, 04:02 PM
Kiriman #6


Ahli Sangat Rajin
******

Grup: Moderator Jr.
Kiriman: 2,698
Penyertaan: 1-October 04
Dari: Batu Berendam, Kuala Lumpur
Ahli ke- 2,953



Please share with us. If you are very kind person smile.gif
If you share.. more knowledge you can get.
Okey ... rolleyes.gif

Kiriman ini telah diubahsuai oleh hairulfadly: Nov 26 2007, 04:03 PM


--------------------
~ Selamat tinggal dunia yang fana ini ~
Go to the top of the page
 
+Quote Post
enol
post Nov 28 2007, 08:37 PM
Kiriman #7


Ahli
*

Grup: Members
Kiriman: 38
Penyertaan: 2-December 06
Ahli ke- 21,537



Congratulation! Please share it. You will lost nothing by sharing it with other.


--------------------
Berburu di padang rata, dapat rusa berbelang kaki.
Berguru kepalang nyata, umpama bunga kembang tak jadi.
Go to the top of the page
 
+Quote Post
slaughters
post Nov 28 2007, 11:12 PM
Kiriman #8


Ahli Sangat Rajin
******

Grup: PDP Moderator
Kiriman: 3,543
Penyertaan: 6-July 05
Dari: Precint 11, Putrajaya
Ahli ke- 8,886



senyap terus thread starter.. mane boleh camtu..


--------------------
http://slaughters.blogspot.com ~ something interesting inside ~
Go to the top of the page
 
+Quote Post
Firestarter
post Nov 28 2007, 11:15 PM
Kiriman #9


Ahli Rajin
****

Grup: Members
Kiriman: 743
Penyertaan: 2-December 06
Dari: Paka - Bangi - Kuantan
Ahli ke- 21,529



Orang lain nak tau gak camner. Kalo camni, bukan kongsi maklumat.


--------------------
Java Specialist Programmer
programming+bisnes logic=headche
Go to the top of the page
 
+Quote Post
LINUXnewbie888
post Nov 29 2007, 09:50 AM
Kiriman #10


Ahli
*

Grup: Learning
Kiriman: 23
Penyertaan: 30-October 07
Dari: Kuala Lumpur
Ahli ke- 37,614



unsure.gif Alamak bro, jgn la marah..


Sorry for the late reply, I was in holidays for few days ago... Almaklumla hati dah heppi..
I got few things to do , however, it such a great release when i've done with this cx_oracle. The thing is , I was faced with lot of difficulties in term of incompatibilities because my machine is 64-bit and there is lot of missing dependencies. Not sure why, maybe during the installation of linux.

So thanks for your responds, dun worry as I have nothing to hide and it is such an honour to share with you guys, And hopefully we can fully utilize this cx_Oracle.

First of all, let me make it clear , my os is Linux Enterprise Edition 5 (RHEL)X86_64 (64-bit) on my remote server and currently the database is Oracle 9i. I'm doing a test for new architecture of the new inhouse software, so we are about to migrate to 10g in future. So, I choose 10g R2 client to be installed on my box.

Ok, to fully utilize cx oracle , I advice you all to d/load this fully oracle client instead of instant client b'coz cx oracle is looking for oracle home and other shared libraries.

How to install oracle client ? I believe many of you who had performed oracle installation can do this installation. But for those who are new to oracle and linux (just like me :-p) let me give a brief on this topic -: (*macam lecturer lak ... kuikuikui)

Oracle 10g (R2) client installation
* you can d/load this oracle client release from www.oracle.com – you also can d/load the documentation for installation guide from the same site
-1- Software requirements
List of packages you will need for install Oracle 10g on RHEL include
binutils
compat-db
compat-libstdc++
control-center
gcc
gcc-c++
glibc
glibc-common
gnome-libs
libstdc++
libstdc++-devel
make
pdksh (RHEL 5 ships with ksh instead)
sysstat
xscreensaver
setarch
libXp (to start runInstaller)
or
rpm -qa --qf '%{name}-%{version}-%{release}.%{arch}\n'|egrep 'compat|glibc|gcc'|sort
Required packages(version must be these or higher).**Install required .rpm packages

-2- Setting System parameters
Edit the /etc/sysctl.conf and add following lines:
kernel.sem = 250 32000 100 128
kernel.shmmax = 2147483648
kernel.shmmni = 128
kernel.shmall = 2097152
kernel.msgmnb = 65536
kernel.msgmni = 2878
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
Note: You need execute "sysctl -p" or reboot system to apply above settings.

Edit the /etc/security/limits.conf file and add following lines:
* - nproc 16384
* - nofile 16384
-3- Preinstalation tasks
-i- Create oracle User Account
Login as root and create te user oracle which belongs to dba group.
su -
# groupadd dba
# groupadd oinstall
# useradd -g oinstall -G dba oracle
-ii- Set Oracle Enviroment
Edit the /home/oracle/.bash_profile file and add following lines:

ORACLE_BASE=/u01/app/oracle;export ORACLE_BASE
ORACLE_HOME=${ORACLE_BASE}/product/Ora102;export ORACLE_HOME
TMPDIR=/u01/tmp;export TMPDIR

-iii- Create base directory for Oracle
Create Oracle base,Oracle home and tmp directory:
As root :
mkdir u01
chown oracle:dba u01

as oracle:
mkdir u01/app/oracle/product/102
mkdir u01/tmp

For oracle 10g installation on RHL5, you should change the redhat release name. Go to /etc/redhat-release file and change it to Red hat Enterprise 4 (something that refers to RHEL4 instead of RHEL 5)


-iv- If all required packages were installed successfully then login as root and switch the GCC 3.4 compiler binary with GCC 3.2 compiler binary as following:
su -
# cd /usr/bin
# mv ./gcc ./gcc34
# mv ./gcc32 ./gcc

extract the files using following command

# gunzip 10201_client_linux_x86_64.cpio.gz
#cpio -idmv <10201_client_linux32.zipcpio


4. Start the Oracle software installation process.

Now the system is prepared for Oracle software installation. To start the installation process execute the following commands (as oracle):
cd client

./runInstaller


• make sure the client directory is located under oracle_base/tmp directory
• before runs the runInstaller file, need to be change to oracle account and start the hummingbird and export DISPLAY=<localhostname>:0.0
5.Post-Instalation Tasks
-i- When the installation is done, switch back the GCC binaries
su -
# cd /usr/bin
# mv ./gcc ./gcc32
# mv ./gcc34 ./gcc

-ii- Change permissions of /u01/app/oracle/oraInventory to 770.







Cx_Oracle Installation

Now we can start the cx_oracle installation. Please get the installer from www.sourceforge.com . Choose the one that suites your application. As mine I choose cx_Oracle-4.3.3.tar.gz (platform independent).
blush.gif
1. untar the cx_oracle :
# tar xvfz cx_Oracle-4.3.3.tar.gz
2. #cd cx_Oracle-4.3.3
3. #python setup.py build
4. #python setup.py install


IT”S DONE…………………………… :-)

Jom nyanyi same2 -->> BERKOJO la KITO SEKUETNYO.... rolleyes.gif

kui..kui..kui..







wub.gif Sorry bro ada ralat skit :

-2- Setting System parameters
Edit the /etc/sysctl.conf and add following lines:
kernel.sem = 250 32000 100 128
kernel.shmmax = 2147483648
kernel.shmmni = 128
kernel.shmall = 2097152
kernel.msgmnb = 65536
kernel.msgmni = 2878
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
Note: You need execute "sysctl -p" or reboot system to apply above settings.
** if the value is higher, dont change


extract the files using following command

# gunzip 10201_client_linux_x86_64.cpio.gz
#cpio -idmv <10201_client_linux32.zipcpio
-- silap nih , sepatutnye

extract the files using following command

# gunzip 10201_client_linux_x86_64.cpio.gz
#cpio -idmv <10201_client_linux_x86_64.cpio

rolleyes.gif
Go to the top of the page
 
+Quote Post
faizal6263
post Apr 29 2008, 04:05 PM
Kiriman #11


Ahli Baru


Grup: Learning
Kiriman: 1
Penyertaan: 16-February 08
Dari: KL
Ahli ke- 42,928



errr.... ermmm... haaa
Go to the top of the page
 
+Quote Post
tErAzZaTaLe
post Apr 29 2008, 07:18 PM
Kiriman #12


Ahli
***

Grup: Members
Kiriman: 422
Penyertaan: 14-January 08
Dari: dari bumi ke bumi
Ahli ke- 41,119



QUOTE(faizal6263 @ Apr 29 2008, 04:13 PM) *
errr.... ermmm... haaa


ape yg haaa 2??
phm ke x??
hehehe
tp aku pn xphm coz aku pn br bk berjinak2 ngan open source ni..


--------------------
...::malu nak letak spec xpower::...
Go to the top of the page
 
+Quote Post
TRUNASUCI
post Apr 30 2008, 12:45 PM
Kiriman #13


Ahli Rajin
*****

Grup: Moderator
Kiriman: 1,318
Penyertaan: 29-April 04
Ahli ke- 420



good thread for users reference.. saya set as "sticky"


--------------------
[img]http://www.openbsd.org/art/banners/banner1.gif[/img]
trunasuci @ linuxmail.org trunasuci @ bsdmail.org
http://trunasuci.opensource.my/
PCBSD Developer Team and Ambassador
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

 

RSS Lo-Fi Version Time is now: 4th December 2008 - 07:18 AM

© 1998-2008 Khazanah Maya Computer Systems