Langsung ke konten utama

Postingan

Menampilkan postingan dari 2018

Cara melakukan SSH Port Forwarding

1. konfigurasi ssh di server forward dengan menambahkan vi /etc/ssh/sshd_config GatewayPorts yes 2. ketikan perintah di server forward /usr/bin/ssh -f -C -R Portforward:IPserverTujuan:Porttujuan usernamekita@localhost -pPortKita ping 8.8.8.8 -s1 Contoh: /usr/bin/ssh -f -C -R 2225:192.168.90.x:22 pandu@localhost -p22 ping 8.8.8.8 -s1

ORA-28001: THE PASSWORD HAS EXPIRED

Connect as sysdba to the database. [oracle@ijindbclone ~]$  sqlplus / as sysdba Run the query to set the password’s life time to unlimited. SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED; Profile altered. Set a password for the locked user. SQL> ALTER USER user_name IDENTIFIED BY password; User altered. Unlock the user account. SQL> ALTER USER user_name ACCOUNT UNLOCK; User altered. Make sure your user is not locked anymore. SQL> SELECT USERNAME,ACCOUNT_STATUS FROM DBA_USERS; USERNAME ACCOUNT_STATUS ------------------------------ -------------------------------- HR                             OPEN ANONYMOUS                      OPEN APEX_040000                    LOCKED FLOWS_FILES                    LOCKED XDB                            EXPIRED & LOCKED CTXSYS                         EXPIRED & LOCKED MDSYS                          EXPIRED & LOCKED SYSTEM                         OPEN SYS                            OPEN

Membuat sinyal wifi semakin kuat di Ubuntu 16.04 LTS dengan driver Realtek RTL8723BE

untuk memperkuat Sinyal Wifi di laptop ubuntu kita, dapat kita lakukan dengan mematikan wifi driver kita terlebih dahulu. dengan mengetikkan: sudo modprobe -rv rtl8723be lalu nyalakan kembali dengan mengetikkan perintah: sudo modprobe -v rtl8723be ant_sel=1 Untuk mempermanenkan setingan diatas kita bisa mengatikkan perintah: sudo tee /etc/modprobe.d/rtl8723be.conf <<< "options rtl8723be ant_sel=1" Selesai

set timezone ubuntu, centos, debian

Set the timezone To set the timezone of your system clock do the following: cp /usr/share/zoneinfo/America/La_Paz /etc/localtime Choose the right timezone for you. Automatically adjust your computer clock To have your system to automatically adjust time we need to install  ntp . Get it from your repository. Once installed you can configure it this way: Edit the file  /etc/ntpd.conf . It will look like this: # With the default settings below, ntpd will only synchronize your clock. # # For details, see: # - the ntp.conf man page # - http://support.ntp.org/bin/view/Support/GettingStarted # - https://wiki.archlinux.org/index.php/Network_Time_Protocol_daemon # Associate to public NTP pool servers; see http://www.pool.ntp.org/ server 0.pool.ntp.org server 1.pool.ntp.org server 2.pool.ntp.org # Only allow read-only access from localhost restrict default noquery nopeer restrict 127.0.0.1 restrict ::1 # Location of drift and log files driftfile /var/lib/ntp/ntp.drift logfile /var

ORA-00257: archiver error. Connect internal only [Solved]

untuk mengatasi masalah error pada oracle, dengan kode error 'ORA-00257: archiver error. Connect internal only' dapat diatasi dengan cara: masuk sebagai sys: sqlplus / as sysdba ketikan: SQL> show parameter recovery   NAME                                 TYPE        VALUE ------------------------------------ ----------- ------------------------------ db_recovery_file_dest                string      /u01/fast_recovery_area db_recovery_file_dest_size           big integer 3882M SQL> alter system set db_recovery_file_dest_size = 4500M; System altered. selesai lalu start menggunakan perintah: startup

ORA-03113: end-of-file on communication channel [Solved]

setelah server oracle restart, terjadi masalah sebagai berikut. [oracle@host ~]$ sqlplus / as sysdba ... ... Copyright (c) 1982, 2014, Oracle. All rights reserved. Connected to an idle instance. SQL> startup ORACLE instance started. Total System Global Area 2147483648 bytes Fixed Size 2926472 bytes Variable Size 1224738936 bytes Database Buffers 905969664 bytes Redo Buffers 13848576 bytes Database mounted. ORA-03113: end-of-file on communication channel Process ID: 4903 Session ID: 237 Serial number: 26032 untuk mengatasi error tersebut, dapat dilakukan dengan cara: SQL> exit Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production [oracle@zeus ~]$ sqlplus / as sysdba ... ... Connected to an idle instance. SQL> startup nomount ORACLE instance started. Total System Global Area 2147483648 bytes Fixed Size 2926472 bytes Variable Size 1224738936 bytes Database Buffers 905969664 bytes Redo Buffers 13848576 bytes SQL> alter database

Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=xxxx))) TNS-12555: TNS:permission denied, TNS-12560: TNS:protocol adapter error

Pada suatu saat TNS saya mati, saya cek, orace running, tetapi tns mati. ketika saya me-restart oracle, muncul error seperti berikut: Error Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))) TNS-12555: TNS:permission denied  TNS-12560: TNS:protocol adapter error untuk mengatasi error tersebut, saya menghapus semua file soket di directory /var/tmp/.oracle rm -rf /var/tmp/.oracle/* start listener, menggunakan perintah "lsnrctl start

apache2 tidak mendeteksi OCI8

kasus ini saya alami pada saat penginstallan oci8 di server debian9. saya menggunakan langkah sebagai berikut: https://pengingatdasar.blogspot.co.id/2018/04/cara-install-oci8-di-ubuntu-1604-dan.html pada saat selesai penginstallan, saya ketikkan command php -i | grep oci muncul keterangan bahwa oci8 tersebut sudah terpasang, lalu saya uji menggunakan file phpinfo(); dari file tsb tidak tampak keberadaan modul oci8 sudah terpasang. langkah yang saya lakukan adalah edit file : nano /etc/apache2/envvars tambahkan script: export  LD_LIBRARY_PATH="/(path oci)/instantclient_12_1/" restart apache. /etc/init.d/apache2 restart buka kembali file phpinfo() nya, dan selesai

Cara install OCI8 di Ubuntu 16.04 dan debian9

Install Oracle Instant Client and SDK Download Oracle instant client dan SDK di website oracle: http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html download file berikut: instantclient-basic-linux.x64-12.1.0.2.0.zip instantclient-sdk-linux.x64-12.1.0.2.0.zip Buat folder baru untuk mengektrak file zip oracle instant client di dalam server. mkdir /opt/oracle extrak file tersebut: cd /opt/oracle unzip instantclient-basic-linux.x64-12.1.0.2.0.zip unzip instantclient-sdk-linux.x64-12.1.0.2.0.zip buat symlink untuk instant client: ln -s /opt/oracle/instantclient_12_1/libclntsh.so.12.1 /opt/oracle/instantclient_12_1/libclntsh.so ln -s /opt/oracle/instantclient_12_1/libocci.so.12.1 /opt/oracle/instantclient_12_1/libocci.so buat folder di ldconfig echo /opt/oracle/instantclient_12_1 > /etc/ld.so.conf.d/oracle-instantclient update ldconfig ldconfig install depedensi yang dibutuhkan untuk memasang oci8 apt-get install