thesuhu

Oracle Troubleshoting

Sep 2nd, 2020 (edited)
1,555
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # KONEKSI LAMBAT
  2. # beberapa penyebab antara lain memory issue
  3. # kasus yg saya alami solved dengan menhapus FILE LOG
  4. # matikan service oracle sebelum hapus LOG
  5. # LOG allert (FILE log<nomor urut>.xml) di folder C:\app\<skema>\diag\tnslsnr\<pc name>\listener\alert
  6. # LOG listener (FILE listener.LOG) di folder C:\app\<skema>\diag\tnslsnr\<pc name>\listener\trace
  7. # jalanlan kembali service oracle
  8.  
  9. # sqlplus/sqlldr error:
  10. # "The program can't start because MSVCR100.dll is missing from your computer. Try reinstalling the program to fix this problem."
  11. # Fix: search MSVCR100.dll IN C:\app\client\<user>\product\12.1.0\client_1
  12. # IF found, copy msvcr100.dll AND msvcp100.dll TO C:\app\client\<user>\product\12.1.0\client_1\bin
  13. # IN my CASE, I copy both files FROM C:\app\client\<user>\product\12.1.0\client_1\oui\lib\win32
  14.  
  15. # sqlldr cannot START because oranfsodm12.dll IS missing
  16. # IN "Oracle Database Client" Oracle DATABASE 12c RELEASE 1 (12.1.0.2.0) FOR Microsoft Windows (x64)
  17. # Fix: IN bin folder, copying oraodm12.dll AND renaming it TO oranfsodm12.dll could be a fix
  18.  
  19. # Error saat LOAD INFILE
  20. # Expecting filename OR "*", found "20200822".
  21. # INFILE 20200822_ulamm_trx032020_072020.txt
  22. # Fix: jangan awali dengan angka pada nama FILE, RENAME menjadi ulamm_20200822_trx032020_072020.txt
  23.  
  24. # ORA-28000: the account IS locked
  25. # untuk unlock
  26. sqlplus  /nolog
  27. conn sys AS sysdba;
  28. ALTER USER USER_NAME ACCOUNT UNLOCK;
  29. # kemudian test di NEW terminal
  30. sqlplus / AS sysdba
  31. conn username/password  //which username u gave before unlock
  32.  
  33. # Error ORA-28040: No matching authentication protocol
  34. # solusi dari client, coba UPDATE oracle client
  35. # jika tidak berhasil, pakai solusi server. tambahkan parameter di FILE sqlnet.ora kemudian restart oracle
  36. SQLNET.ALLOWED_LOGON_VERSION_SERVER=8
  37. # setelah restart, jika muncul error ORA-01017: invalid username/password; logon denied
  38. # solusinya ALTER USER expire kemudian unlock kembali
  39. # cek CDB atau PDB
  40. show con_name
  41. CON_NAME
  42. ------------------------------
  43. ORCLPDB1
  44. # jika SESSION CDB dan usernya dibuat adalah USER PDB, maka pindah dulu ke PDB
  45. ALTER SESSION SET container=pdb1
  46. # ALTER USER menjadi expire
  47. ALTER USER hr password expire;
  48. # unlock USER
  49. ALTER USER hr IDENTIFIED BY <PASSWORD> account unlock;
  50.  
  51. # error ORA-12638: Credential retrieval failed, fix:
  52. # buka FILE sqlnet.ora, ubah SQLNET.AUTHENTICATION_SERVICES= (NTS) menjadi SQLNET.AUTHENTICATION_SERVICES= (NONE)
  53.  
  54. # error "ORA-24454: client host name is not set" WHEN connecting FROM Ubuntu instance
  55. sudo /bin/bash -c "echo '127.0.0.1 ${HOSTNAME}' >> /etc/hosts"
  56.  
  57. # INSERT single quote masalah, tambahkan single quote satu lagi di depan single quote
  58. # contoh REPLACE dari javascript
  59. # a.REPLACE(/\'/g, "\''")
  60.  
Add Comment
Please, Sign In to add comment