I'm using ODI 10g and I need to encrypt a password for using a specific action ?
It is not possible to fill a unencrypted password in the Designer.
How can I do it ?
You need to use a command line tool.
For example : under Windows, go to ODI installation directory and launch an agent with encode action.
C:\Program Files (x86)\Oracle\oracledi\oracledi\bin>agent encode mypassword
bSypMwVFsf99cHtQMofPp
The action will return the encrypted password on the prompt.
Related
sql connection can be done if we have correct user name, password & DB name. I want to create a user if pre defined user is not available. is there a way to do it perhaps during the installation process (installing the .exe) ? Maybe using a powsershell script
we can use thhis batch script https://gist.github.com/djangofan/3792028 with some changes.
I would like to automate the connection to an SFTP server (FileZilla) in order to create a batch file to automate some reporting processes.
What I used until now is the following script:
sftp alessandro:arica.123#85.148.385.22
Theoretically, I am passing in the script above the username (alessandro), the password (arica) and the hostname. The problem is that the password is not passed as a parameter, therefore in order to connect, I am asked to enter the password in the terminal.
Can you explain me and tell me what I am doing wrong?
Can you explain me and tell me what I am doing wrong?
The manual page for sftp explain synopsis of sftp command this way (abbreviated):
sftp [...] [user#]host
As you can see, there is no :password so both of username:password are passed as a username to the server. sftp command does NOT accept passwords on command-line, because it is very bad security practice to store the passwords in plain text in scripts.
You should configure your server to accept public key authentication (it is not so hard and very useful for automation!):
ssh-keygen -t rsa -f ~/.ssh/id_rsa
ssh-copy-id alessandro#85.148.385.22 # write password once
ssh alessandro#85.148.385.22 # will not ask for password again
I need to make a batch file which opens my ftp server automatically,How do i automatically input user name and password to the ftp username and password prompt.I have tried to use
echo username|ftp ipadress,but it is taking the input for both user name and password. So I need help to create a batch file, which automatically logins as "user" and password "pass"
Before you use the following script, please remember that the FTP protocol
doesn't allow encryptions, the authentication process and the data transitions.
Create a new text file with the following text:
open "myservername/serverip"
"%username%"
"password"
cd /upload
bin
hash
put/get "filename.cab"
bye
Note: Please choose the correct ftp commands to allow the script to work.
Save the file as runftp.txt (For example).
Run the command: c:\windows\system32\ftp.exe -s:runftp.txt
SOURCE: http://support.microsoft.com/kb/555976
I want to automate a MS-DOS command which requires a password, however the password can not be passed as one of the command line options.
How can I do this?
The command I want to run is
dumpdata --schema=mydb mytable C:\temp\output.sql
[This command extracts data from an Oracle database in the form of Insert statements]
There is then a prompt for the password, which needs to be entered manually.
Removing the password (from the database) is not an option, as per Writing a batch file that enters a password when prompted
Thank you!
If I understand it correctly you should set up an environment variable named ORA_USERID containing your username/password. If not set than you will be prompted for the password when connecting using the dumpdata command. Checkout OracleTools.
If dumpdata can read from a pipe, this may work:
echo PASSWORD | dumpdata --schema=mydb mytable C:\temp\output.sql
objective: to install oracle 10g xe on ubuntu.
method followed :www.oracle.com/technology/tech/linux/install/xe-on-kubuntu.html
problem: The installation went fine and at 1 point it asked me for a password for the system account and I gave it lets say 'securepassword' that. Now, I have 2 problems:
I want to create a database. There is a createdb script in the bin directory, but everytime I run it, it says :
ORACLE_HOME must be set and $ORACLE_HOME/dbs must be writable
So I set the ORACLE_HOME but i still get the problem. I figure that since all files in the dbs directory are owned by the 'oracle' user and the dba group, I'll su to oracle and run the command. Turns out 'securepassword' doesnt work for the oracle user. The Oracle installation created a user called 'oracle' but gave it some passwod I dont know about. Whats this password ?
I also tried adding my current user to the dba group and trying it again. Didnt work either
When I run ./sqlplus from the bin directory, I try to login as sys\'securepassword'. Didnt work! Tried system\'securepassword'. Didnt work either.
The only place system/'securepassword' worked was to get into the apex web interface.
Can someone tel me the default password for the oracle user and how to login to sqlplus ?
I can think of three reasons why
sqlplus sys\'securepassword'
wont' work:
You're using backslashes. Use forward slashes instead.
Don't put quotes around the password.
If connecting as SYS, you'll need to add as sysdba as otherwise you get the following error message:
ERROR:
ORA-28009: connection as SYS should be as SYSDBA or SYSOPER
So, assuming that securepassword is the password for both SYS and SYSTEM, both of the following lines should work:
sqlplus sys/securepassword as sysdba
sqlplus system/securepassword
In Oracle, 'OS-based authentication' means that if your Ubuntu user account is a member of the dba group, then you can log in as SYS without a password by typing
sqlplus / as sysdba
in a shell window. This is handy if you forget your SYS password and need to reset it.
Incidentally, I ran into a completely non-obvious issue installing Oracle 10g XE on my openSUSE box. I needed to run
chown oracle /var/tmp/.oracle
as root to clear up a permissions error which prevented the database from starting.
In the linux terminal, type:
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/config/scripts/sqlplus.sh
It should bring you into the SQLPlus commandline.
To connect, type:
connect sys as dba
Then fill in your password when prompted. Done!
Can you log in as sys with os based authentication? Then you should be able to set passwords, etc.
sqlplus / as sysdba
?
After re-reading the question, it sounds like you are trying to find the password for the OS user "oracle"? If you installed the software as root, you should be able to set a new password for the user "oracle" using the passwd utility.