Home| Progetto| Web| Faq| Acronimi | ||||
Argomenti Documenti pubblicabili:1120
Scripts:1282 Documenti non pubblicabili:162 Categorie tematiche:68 .Net |_C# |_Visual basic.net |_Asp.net Active Server Pages C++ Cascade Style Sheet JavaScript Mysql Php Xml Java |_Java 2 Micro Edition |_Java server pages |_Java Servlet Oracle |_PLSQL PostgreSQL Unix
Oracle...
Info:
EXPLAIN PLAN statement
Oracle...
Script:
Opzione DEFAULT per il valore di una colonna
Unix...
Tip:
Rimuovere un file in Unix / Delete a file
PLSQL...
Script:
TYPE TABLE
Oracle...
Tip:
LICENCE_MAX_USERS
Oracle...
Faq:
Which chars in table and column names?
Shell scripting...
Script:
Formatting text as bold withing shell script
A User Agent, like a web browser, uses HTTP to request a HTML document
Php Funzione mail()
In programming the danger of exploring the small details of coding is that you get obsessed with every line of code you write, thereby greatly reducing productivity.
In general, is not worth obsessing over code. On the other hand you should code with deliberation and intent. Steven Feurstein Oracle Magazine July /August 2004 A User Agent, like a web browser, uses HTTP to request a HTML document
|
Oracle
Home >Oracle > Basic tricks and suggestions to protect schema password from process grep and sniffing
In unix environment a simple sql or exp/imp activity can jeopardise security. In fact the ps command may allow other users to intercept schema passwords. In this document we will examine some basic safe tecniques. For example let's assume I need to run the following plsql script from unix prompt: --file t.sql --sqlfile make up table t and populate, eg take some time for example sake If to run the script I do issue:
$unixserver [dba] sqlplus -s system/systempassw @t.sql
Another user can easily grep schema and password:
$unixserver [developer] ps -ef | grep sql
oracle 11362 10600 0 16:19:03 pts/1 0:00 sqlplus -s system/systempassw @t.sql Let's try some trick to mask the password using echo systempassw | , to local database:
$unixserver [dba] echo systempassw | sqlplus -s system @t.sql
To remote database:
$unixserver [dba] echo systempassw | sqlplus -s system@CAT01 @t.sql
Other users do not grep password
$unixserver [developer] ps -ef | grep sql
oracle 11709 10600 36 16:28:47 pts/1 0:00 sqlplus -s system @t.sql
Some trick using export import utility, for example classic exp
$unixserver [dba] echo systempassw | exp system tables=t file=t log=t
Or datapump:
$unixserver [dba] echo systempassw | expdp system tables=t dumpfile=t logfile=t directory=DATA_PUMP_DIR
Even in this case, users see the process but not the password. Another way, is first accessing as sqlplus /nolog then using a files connecting schema and password (start.sql does connect system and then it runs t.sql script):
-- file start.sql
conn system/systempassw @t.sql exit To run it, just prompt:
$unixserver [dba] sqlplus -s /nolog @start.sql
Users can just grep only the process:
$unixserver [developer] ps -ef | grep sql
oracle 12314 10600 48 16:44:23 pts/1 0:00 sqlplus -s /nolog @start.sql You can use same construct in shell scripting:
#!/bin/ksh
#file -run.ksh sqlplus -s /nolog< spool mylog.LOG @t.sql spool off quit ef Once again other users will not grep any passwords. Happy safe programming, then. marco magnani database administrator Warning: include(ads/text468x15.html): failed to open stream: No such file or directory in D:\inetpub\webs\fishscriptcom\documents\view_document.php on line 131 Warning: include(): Failed opening 'ads/text468x15.html' for inclusion (include_path='.;C:\php\pear') in D:\inetpub\webs\fishscriptcom\documents\view_document.php on line 131 Tutorial ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Script ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Comandi ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Codici errore ![]() ![]() ![]() ![]() ![]() |
Cerca
Oracle...
Info:
Spazio su disco per motore Oracle 10g
Anger is creative, depression is useless.
Dyson, Freeman J. Anger is creative, depression is useless.
Dyson, Freeman J.
Oracle...
Info:
SHARED_SERVER
Oracle...
Citazioni:
Designing an efficient Schema ...
Oracle...
Definizioni:
SCN
Oracle...
Definizioni:
SCN
Shell scripting...
Script:
How to get size or other file info in a shell script
fishScript.Com is accessible by Mobile access technology
as mobile phones, Palm and Pocket PC .
Nicoleta e Marco Magnani tutorial, examples, courses, esempi, corsi, esercizi, appunti vari Dottoressa Nicoleta Dragu Formatrice Docente Insegnante Mediatrice Culturale Dott. Marco Magnani Universita La Sapienza Roma Master Computer Science Hunter College New York , Data Base Administrator DBA oracle System architect |