Archive for the ‘Database’ Category
import .dmp oracle di ubuntu (oracle 10g dan 11)
semua perintah imp,exp, dan sqlplus ada di folder
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin
import :
|
1 |
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/imp username/password file=alamat.dmp full=y commit=y; |
untuk oralce 11
|
1 |
/u01/app/oracle/product/11.2.0/xe/bin/imp sys/root@localhost/xe fromuser=xlink touser=xlink file=xlink_15_01_2013_rev2.dmp commit=y; |
membuat function di mysql
|
1 2 3 4 5 6 7 8 9 10 11 12 |
create function dms_to_dec (d int,m float,s float,dir varchar(5)) returns float begin declare hasil float; declare hasil2 float; set hasil = round(d + (m/60) + (s/3600),8); if (UCASE(dir)='W' or UCASE(dir)='S') then set hasil2 = hasil*(-1); else set hasil2 = hasil; end if; return hasil2; end; |
Buat user di oracle melalui sql*plus (ubuntu)
- login sebagai admin (caranya).
- buat user
1CREATE user namauser identified by passworduser; - Buat hak akses dari user
1GRANT connect,resource,create view,create database link to namauser;
selesai.
(mohon koreksinya bila ada kesalahan)