Developer
basic linux command
Thursday, 20 October 2011 17:35

extract file tar.gz

tar -zxvf file.tar.gz

 
FUNCTION MSSQL membuat parameter query IN variable '6001,6300,6500'
Thursday, 20 October 2011 16:47

membuat parameter query menggunakan IN dengan jumlah variabel argumen seperti yang satu ini '6001,6300,6500' untuk itu diperlukan merubah variable string tersebut menjadi baris data, kalau di php sama seperti dengan perintah implode

FUNCTION [dbo].[fn_zstringtorow](
    @sInputList VARCHAR(8000) -- List of delimited items
  , @sDelimiter VARCHAR(8000) = ',' -- delimiter that separates items
) RETURNS @List TABLE (item VARCHAR(8000))

BEGIN
DECLARE @sItem VARCHAR(8000)
WHILE CHARINDEX(@sDelimiter,@sInputList,0) <> 0
 BEGIN
 SELECT
  @sItem=RTRIM(LTRIM(SUBSTRING(@sInputList,1,CHARINDEX(@sDelimiter,@sInputList,0)-1))),
  @sInputList=RTRIM(LTRIM(SUBSTRING(@sInputList,CHARINDEX(@sDelimiter,@sInputList,0)+LEN(@sDelimiter),LEN(@sInputList))))

 IF LEN(@sItem) > 0
  INSERT INTO @List SELECT @sItem
 END

IF LEN(@sInputList) > 0
 INSERT INTO @List SELECT @sInputList -- Put the last item in
RETURN
END
GO
 
Menggunakan TOAD dan Oracle instant client
Wednesday, 19 October 2011 09:00

spesifikasi: Windows7 32bit, TOAD 9725, Oracle Release 10.1.0.3.0

Menggunakan TOAD dan oracle instant client, karena keterbatasan kapasitas hardisk dan tidak membutuhkan database oracle engine diinstall di local ada beberapa hal yg harus dilakukan sebelum menggunakannya.

1. download oracle instant client sesuaikan dengan versi oracle yg digunakan.

di catatan ini sy menggunakan 10g jadi yg didownload

instantclient-basic-win32-10.1.0.5-20060419.zip

instantclient-sqlplus-win32-10.1.0.5-20060419.zip

2. buat folder c:\oracle

3. Unzip kedua file tersebut ke dalam folder c:\oracle

1) pertama unzip instantclient-basic-win32-10.1.0.5-20060419.zip

2) kedua unzip instantclient-sqlplus-win32-10.1.0.5-20060419.zip

4. Setup system %PATH% dan %TNS ADMIN% variable

a) dari windows explorer, klik kanan pada "My Computer" icon dan klik "Properties".

b) Klik "Advanced" Tab

c) Klik tombol "Environment Variables.."

d) Pada bagian "System variables" pilih variable "PATH" dan klik tombol "Edit":

pada kolom "Variable Value" tambahkan "C:\oracle\instantclient10_1" tanda ";" sebagai pembeda antara path yg lainnya.

e) klik tombol "Ok"

f) pada bagian "User variables" tambahkan variable TNS_ADMIN dengan:

klik tombol "New" di kolom "Variable name:" isi dengan TNS_ADMIN dan di "Variale value" isi dengan "C:\oracle\instantclient10_1"

e) klik tombol "Ok"

5. Jalankan TOAD

a) isi User/Schema dan password

b) pilih Direct tab dab isi semua kolom sesuai dengan konfigurasi database oracle yg akan di akses

c) klik tombol "Connect"

 

 
memulai oracle 10G
Monday, 17 October 2011 08:10

Spesifikasi:

OS: Redhat5

Database: Oracle 10g

 

login sebagai user oracle

lsnrctl start

$ sqlplus / as sysdba

SQL> startup   ;wait until database mounted and opened

 

untuk mengakses database nya

sqlplus userfoo/passwordfoo

 

sumber lain

http://arjudba.blogspot.com/2008/04/ora-01034-ora-27101-shared-memory-realm.html

untuk di client

http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html

setup client for toad and sqlplus

http://www.dbatoolz.com/t/installing-oracle-instantclient-basic-and-instantclient-sqlplus-on-win32.html

 

 
Rhomobile
Saturday, 01 October 2011 11:27

Complete details on Rhodes are available in the Rhomobile wiki

(www.rhomobile.com/wiki) and the source to Rhodes is available at github

(http://github.com/rhomobile). There are also open source example applications

available. Finally, there is an active community of developers at

http://groups.google.com/group/rhomobile.

 
<< Start < Prev 1 2 3 4 5 6 Next > End >>

Page 1 of 6
Joomla templates by a4joomla