Need to access/connect Remote Unix server from Java
Please any one give me a direct solution for connecting a remote Unix server through telnet connection from java application. Thanks in advance..
If I run the below program codes, in the console it is asking to enter username and password in manual but I need to give it automatically.
The highlighted "root" is entered by the user manually using keyboard.
Expected:
I mean the username, password and some action is set to be automatic, so that it should not ask the user to enter the input from keyboard.
import java.awt.Robot;
import java.awt.event.KeyEvent;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import org.apache.commons.net.telnet.TelnetClient;
import org.apache.commons.net.telnet.TelnetNotificationHandler;
import org.apache.commons.net.telnet.SimpleOptionHandler;
import org.apache.commons.net.telnet.EchoOptionHandler;
import org.apache.commons.net.telnet.TerminalTypeOptionHandler;
import org.apache.commons.net.telnet.SuppressGAOptionHandler;
import org.apache.commons.net.telnet.InvalidTelnetOptionException;
import java.util.StringTokenizer;
* This is a simple example of use of TelnetClient.
* An external option handler (SimpleTelnetOptionHandler) is used.
* Initial configuration requested by TelnetClient will be:
* WILL ECHO, WILL SUPPR
* ESS-GA, DO SUPPRESS-GA.
* VT100 terminal type will be subnegotiated.
* <p>
* Also, use of the sendAYT(), getLocalOptionState(), getRemoteOptionState()
* is demonstrated.
* When connected, type AYT to send an AYT command to the server and see
* the result.
* Type OPT to see a report of the state of the first 25 options.
* <p>
* @author Bruno D'Avanzo
public class UnixConnect implements Runnable, TelnetNotificationHandler
static TelnetClient tc = null;
* Main for the TelnetClientExample.
public static void main(String[] args) throws IOException
FileOutputStream fout = null;
/*if(args.length < 1)
System.err.println("Usage: TelnetClientExample1 <remote-ip> [<remote-port>]");
System.exit(1);
String remoteip = "192.168.20.11";
int remoteport;
if (args.length > 1)
remoteport = (new Integer(args[1])).intValue();
else
remoteport = 23;
try
fout = new FileOutputStream ("spy.log", true);
catch (Exception e)
System.err.println(
"Exception while opening the spy file: "
+ e.getMessage());
tc = new TelnetClient();
TerminalTypeOptionHandler ttopt = new TerminalTypeOptionHandler("VT200", false, false, true, false);
EchoOptionHandler echoopt = new EchoOptionHandler(true, false, true, false);
SuppressGAOptionHandler gaopt = new SuppressGAOptionHandler(true, true, true, true);
try
tc.addOptionHandler(ttopt);
tc.addOptionHandler(echoopt);
tc.addOptionHandler(gaopt);
catch (InvalidTelnetOptionException e)
System.err.println("Error registering option handlers: " + e.getMessage());
while (true)
boolean end_loop = false;
try
tc.connect(remoteip, remoteport);
Thread reader = new Thread (new UnixConnect());
tc.registerNotifHandler(new UnixConnect());
reader.start();
OutputStream outstr = tc.getOutputStream();
byte[] buff = new byte[1024];
int ret_read = 0;
do
try
ret_read = System.in.read(buff);
if(ret_read > 0)
outstr.write(buff, 0 , ret_read);
outstr.flush();
catch (Exception e)
System.err.println("Exception while reading keyboard:" + e.getMessage());
end_loop = true;
while((ret_read > 0) && (end_loop == false));
try
tc.disconnect();
catch (Exception e)
System.err.println("Exception while connecting:" + e.getMessage());
catch (Exception e)
System.err.println("Exception while connecting:" + e.getMessage());
System.exit(1);
* Callback method called when TelnetClient receives an option
* negotiation command.
* <p>
* @param negotiation_code - type of negotiation command received
* (RECEIVED_DO, RECEIVED_DONT, RECEIVED_WILL, RECEIVED_WONT)
* <p>
* @param option_code - code of the option negotiated
* <p>
public void receivedNegotiation(int negotiation_code, int option_code)
String command = null;
if(negotiation_code == TelnetNotificationHandler.RECEIVED_DO)
command = "DO";
else if(negotiation_code == TelnetNotificationHandler.RECEIVED_DONT)
command = "DONT";
else if(negotiation_code == TelnetNotificationHandler.RECEIVED_WILL)
command = "WILL";
else if(negotiation_code == TelnetNotificationHandler.RECEIVED_WONT)
command = "WONT";
System.out.println("Received " + command + " for option code " + option_code);
* Reader thread.
* Reads lines from the TelnetClient and echoes them
* on the screen.
public void run()
InputStream instr = tc.getInputStream();
try
byte[] buff = new byte[1024];
int ret_read = 0;
do
ret_read = instr.read(buff);
if(ret_read > 0)
System.out.print(new String(buff, 0, ret_read));
while (ret_read >= 0);
catch (Exception e)
System.err.println("Exception while reading socket:" + e.getMessage());
try
tc.disconnect();
catch (Exception e)
System.err.println("Exception while closing telnet:" + e.getMessage());
Similar Messages
-
Invoking remote IIS server from java
Hi,
May I know how to invoke the remote IIS server from java?
Basically I am designing the administrative tool to start and stop IIS server which is running remote machine.
Thanks!You will need to connect to the remote system using some service other than IIS, since starting IIS is one of your requirements. The usual is to connect using Telnet or SSH. I posted code to connect to a Unix box using Telnet. You could use this to connect to a Windows system that was running a Telnet server.
-
Connect to unix server through java
Hi All,
I've seen this topic being discussed here, but I want to clarify my situation.
I'm a college student, so our school provides us accounts to a unix server.
I am writing a java program that needs to connect to this unix server owned by the school, and run some commands and obtain the results and display them in the same java program.
for example after the connection, I use the java Runtime() method to pass the "pwd" command from my program, and my java program should receive the result something like "/university/student/program" from the server, and I should be able to display in the java program.
I feel like since the unix from school is already acting as a "server," I don't need to write the server side code, it should be handled by the unix system, right?
Can someone give me a sample code on how to establish such connection?
BTW, I usually use ssh to access the unix server.
Much appreciated, and it's kinda urgent.
Thank You.There are ssh clients written in Java so I'm not really sure you really want the following code because it accesses ssh using Runtime.exec(). I have never used this with anything except Linux so I assume that your client ssh is in a directory that is on the PATH.
If your server ssh is set up to do public key authentication then you will not have to supply the user password. If you do require a password then on Linux FC5 you will be prompted though a dialog. I don't know how you provide the password in Windows.
import java.io.*;
public class Fred117_1
static class AsyncPipe implements Runnable
public AsyncPipe(InputStream istrm, OutputStream ostrm)
istrm_ = istrm;
ostrm_= ostrm;
public void run()
try
final byte[] buffer = new byte[1024];
for (int length = 0; (length = istrm_.read(buffer)) != -1;)
ostrm_.write(buffer, 0, length);
catch (Exception e)
e.printStackTrace();
private final OutputStream ostrm_;
private final InputStream istrm_;
public static void main(String[] args) throws Exception
final boolean isWindows = System.getProperty("os.name").startsWith("Windows");
final String LINE_SEPARATOR = System.getProperty("line.separator");
final Process process = Runtime.getRuntime().exec(isWindows ? "cmd.exe" : "sh");
new Thread(new AsyncPipe(process.getErrorStream(), System.err)).start();
new Thread(new AsyncPipe(process.getInputStream(), System.out)).start();
final Writer writer = new OutputStreamWriter(process.getOutputStream(), "UTF-8");
final String[] shCommands =
"ssh alpha",
"df -k",
"ls",
for (String shCommand : shCommands)
System.out.println(shCommand);
writer.write(shCommand);
writer.write(LINE_SEPARATOR);
writer.close();
final int returnCode = process.waitFor();
System.out.println("Return code = " + returnCode);
} -
I need helping configuring RDP access to my local server from a remote location on my Cisco ASA 5505 Firewall.
I have attempted to configure rdp access but it does not seem to be working for me Could I please ask someone to help me modify my current configuration to allow this? Please do step by step as I could use all the help I could get.
I need to allow the following IP addresses to have RDP access to my server:
66.237.238.193-66.237.238.222
69.195.249.177-69.195.249.190
69.65.80.240-69.65.80.249
My external WAN server info is - 99.89.69.333
The internal IP address of my server is - 192.168.6.2
The other server shows up as 99.89.69.334 but is working fine.
I already added one server for Static route and RDP but when I try to put in same commands it doesnt allow me to for this new one. Please take a look at my configuration file and give me the commands i need in order to put this through. Also please tell me if there are any bad/conflicting entries.
THE FOLLOWING IS MY CONFIGURATION FILE
Also I have modified IP information so that its not the ACTUAL ip info for my server/network etc... lol for security reasons of course
Also the bolded lines are the modifications I made but that arent working.
ASA Version 7.2(4)
hostname ciscoasa
domain-name default.domain.invalid
enable password DowJbZ7jrm5Nkm5B encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
names
interface Vlan1
nameif inside
security-level 100
ip address 192.168.6.254 255.255.255.0
interface Vlan2
nameif outside
security-level 0
ip address 99.89.69.233 255.255.255.248
interface Ethernet0/0
switchport access vlan 2
interface Ethernet0/1
interface Ethernet0/2
interface Ethernet0/3
interface Ethernet0/4
interface Ethernet0/5
interface Ethernet0/6
interface Ethernet0/7
ftp mode passive
dns server-group DefaultDNS
domain-name default.domain.invalid
object-group network EMRMC
network-object 10.1.2.0 255.255.255.0
network-object 192.168.10.0 255.255.255.0
network-object 192.168.11.0 255.255.255.0
network-object 172.16.0.0 255.255.0.0
network-object 192.168.9.0 255.255.255.0
object-group service RDP tcp
description RDP
port-object eq 3389
object-group service GMED tcp
description GMED
port-object eq 3390
object-group service MarsAccess tcp
description MarsAccess
port-object range pcanywhere-data 5632
object-group service MarsFTP tcp
description MarsFTP
port-object range ftp-data ftp
object-group service MarsSupportAppls tcp
description MarsSupportAppls
port-object eq 1972
object-group service MarsUpdatePort tcp
description MarsUpdatePort
port-object eq 7835
object-group service NM1503 tcp
description NM1503
port-object eq 1503
object-group service NM1720 tcp
description NM1720
port-object eq h323
object-group service NM1731 tcp
description NM1731
port-object eq 1731
object-group service NM389 tcp
description NM389
port-object eq ldap
object-group service NM522 tcp
description NM522
port-object eq 522
object-group service SSL tcp
description SSL
port-object eq https
object-group service rdp tcp
port-object eq 3389
access-list outside_1_cryptomap extended permit ip 192.168.6.0 255.255.255.0 object-group EMRMC
access-list inside_nat0_outbound extended permit ip 192.168.6.0 255.255.255.0 192.168.0.0 255.255.0.0
access-list inside_nat0_outbound extended permit ip 192.168.6.0 255.255.255.0 object-group EMRMC
access-list outside_access_in extended permit tcp 69.16.158.128 255.255.255.128 host 99.89.69.334 eq pcanywhere-data
access-list outside_access_in extended permit udp 69.16.158.128 255.255.255.128 host 99.89.69.334 eq pcanywhere-status
access-list outside_access_in extended permit tcp 69.16.158.128 255.255.255.128 host 99.89.69.334 object-group RDP
access-list outside_access_in extended permit tcp 69.16.158.128 255.255.255.128 192.168.6.0 255.255.255.0 eq ftp
access-list outside_access_in extended permit tcp 69.16.158.128 255.255.255.128 192.168.6.0 255.255.255.0 eq ldap
access-list outside_access_in extended permit tcp 69.16.158.128 255.255.255.128 192.168.6.0 255.255.255.0 eq h323
access-list outside_access_in extended permit tcp 69.16.158.128 255.255.255.128 192.168.6.0 255.255.255.0 eq telnet
access-list outside_access_in extended permit tcp 69.16.158.128 255.255.255.128 192.168.6.0 255.255.255.0 eq www
access-list outside_access_in extended permit tcp 69.16.158.128 255.255.255.128 host 99.89.69.334 object-group SSL
access-list outside_access_in extended permit tcp 69.16.158.128 255.255.255.128 192.168.6.0 255.255.255.0 object-group NM522
access-list outside_access_in extended permit tcp 69.16.158.128 255.255.255.128 192.168.6.0 255.255.255.0 object-group NM1731
access-list outside_access_in extended permit tcp 173.197.144.48 255.255.255.248 host 99.89.69.334 object-group RDP
access-list outside_access_in extended permit tcp any interface outside eq 3389
access-list outside_access_in extended permit tcp host 66.237.238.194 host 99.89.69.333
access-list outside_access_in extended permit tcp host 66.237.238.194 host 99.89.69.333 object-group rdp
access-list outside_access_in extended permit tcp any host 99.89.69.333 object-group rdp
access-list out_in extended permit tcp any host 192.168.6.2 eq 3389
pager lines 24
logging enable
logging asdm informational
mtu inside 1500
mtu outside 1500
icmp unreachable rate-limit 1 burst-size 1
asdm image disk0:/asdm-524.bin
no asdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list inside_nat0_outbound
nat (inside) 1 0.0.0.0 0.0.0.0
static (inside,outside) tcp 99.89.69.334 3389 192.168.6.1 3389 netmask 255.255.255.255
static (inside,outside) tcp interface 3389 192.168.6.2 3389 netmask 255.255.255.255
access-group outside_access_in in interface outside
route outside 0.0.0.0 0.0.0.0 99.89.69.338 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
http server enable
http 192.168.6.0 255.255.255.0 inside
http 0.0.0.0 0.0.0.0 outside
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
crypto ipsec transform-set ESP-3DES-MD5 esp-3des esp-md5-hmac
crypto map outside_map 1 match address outside_1_cryptomap
crypto map outside_map 1 set peer 68.156.148.5
crypto map outside_map 1 set transform-set ESP-3DES-MD5
crypto map outside_map interface outside
crypto isakmp enable outside
crypto isakmp policy 10
authentication pre-share
encryption 3des
hash md5
group 1
lifetime 86400
crypto isakmp policy 30
authentication pre-share
encryption 3des
hash md5
group 2
lifetime 86400
telnet timeout 5
ssh timeout 5
console timeout 0
dhcpd auto_config outside
tunnel-group 68.156.148.5 type ipsec-l2l
tunnel-group 68.156.148.5 ipsec-attributes
pre-shared-key *
class-map inspection_default
match default-inspection-traffic
policy-map type inspect dns preset_dns_map
parameters
message-length maximum 512
policy-map global_policy
class inspection_default
inspect dns preset_dns_map
inspect ftp
inspect h323 h225
inspect h323 ras
inspect rsh
inspect rtsp
inspect esmtp
inspect sqlnet
inspect skinny
inspect sunrpc
inspect sunrpc
inspect xdmcp
inspect sip
inspect netbios
inspect tftp
service-policy global_policy global
prompt hostname context
Cryptochecksum:f47dfb2cf91833f0366ff572eafefb1d
: end
ciscoasa(config-network)#Unclear what did not work. In your original post you include said some commands were added but don't work:
static (inside,outside) tcp interface 3389 192.168.6.2 3389 netmask 255.255.255.255
and later you state you add another command that gets an error:
static (inside,outside) tcp 99.89.69.333 3389 192.168.6.2 3389 netmask 255.255.255.255
You also stated that 99.89.69.333 (actually 99.89.69.233, guessing from the rest of your config and other posts) is your WAN IP address.
The first static statement matches Cisco's documentation, which states that a static statement must use the 'interface' directive when you are trying to do static PAT utilizing the IP address of the interface. Since 99.89.69.333 is the assigned IP address of your WAN interface, that may explain why the second statement fails.
Any reason why you are using static PAT (including the port number 3389) instead of just skipping that directive? Static PAT usually makes sense when you need to change the TCP port number. In your example, you are not changing the TCP port 3389. -
Connecting to remote oracle server from asp
Hi All
How can I access remote oracle server from asp?. I'm using the following connection string.
" Provider=MS Remote;Remote Provider=MSDAORA;Data Source=XYZ;Remote Server=http://DBServersIP;User Id=id;Password=pw"
Both the web server and DB server has oracle client. I can tnsping, connect using sql * plus from the webserver.
But when I try to do simple connection & query , I get the following error.
" Microsoft ADO/RDS(0x80072EFD)
Internet Client Error: Cannot Connect to Server.
All the permission settings are given correctly (after referring Microsoft & Oracle websites)
Can someone throw some links or help.?
Your replies much appreciated.
Thank you
Arumwhy do you have http://DBServersIP as the remote server?
Your connection string should look like:
"Driver={Microsoft ODBC for Oracle};Server=MY_SID;Uid=my_user;Pwd=my_pwd;"
There are other variations, but none of them should include HTTP anywhere. -
From Sap to Remote Unix Server
Hi,
I have to send a file from an internal table to a remote unix server. i have tried a lot appling FTP with a put command but its still not getting transported.
please help me out.and also tell me wheather i can use some other way to do this.
also tell me wheather there are some issues of authorisation in this....
please help me as early as possible.. i am in a real need.. i promise to revert back with points...I HAVE TO SEND A FILE FROM OUR SAP TO REMOTE UNIX SERVER.
FOR THIS PURPOSE I AM USING FTP, BUT STILL I AM NOT ABLE TO DO THAT..
PLEASE HELP ME OUT ON THIS..
BELOW I AM GIVING MY CODE PLEASE HAVE A LOOK AT IT AND TELL ME WHATS WRONG.
REPORT ZIZSFPB001 .
TABLES : ZISFP03.
CONSTANTS: C_DELIMETER(1) TYPE C
VALUE '#'.
TYPES: BEGIN OF TY_FREIGHT,
VENDOR TYPE ZISFP03-VENDOR,
LR_NO TYPE ZISFP03-LR_NO,
EBELN TYPE ZISFP03-EBELN,
LR_DATE TYPE ZISFP03-LR_DATE,
PO_DATE TYPE ZISFP03-PO_DATE,
PO_BRANCH TYPE ZISFP03-PO_BRANCH,
TRK_NO TYPE ZISFP03-TRK_NO,
DISP_TIME TYPE ZISFP03-DISP_TIME,
SCAN_NO TYPE ZISFP03-SCAN_NO,
ACTU_QTY TYPE ZISFP04-ACTU_QTY,
MATERIAL TYPE ZISFP04-MATERIAL,
GR_BRANCH TYPE ZISFP04-GR_BRANCH,
STDTIME TYPE ZISFP14-STDTIME,
EST_ARRV_DT TYPE ZISFP04-ARRV_DT,
END OF TY_FREIGHT.
TYPES: BEGIN OF TY_FTP,
FIELD(90) TYPE C,
END OF TY_FTP.
DATA: IT_FREIGHT TYPE STANDARD TABLE OF TY_FREIGHT,
IT_OUTPUT TYPE STANDARD TABLE OF TY_FREIGHT,
IT_FTP TYPE STANDARD TABLE OF TY_FTP.
DATA : BEGIN OF TABL OCCURS 0,
LINE(560),
END OF TABL.
DATA: WA_FREIGHT TYPE TY_FREIGHT,
WA_OUTPUT TYPE TY_FREIGHT,
WA_FTP TYPE TY_FTP.
DATA: W_DSN TYPE SXPGCOLIST-PARAMETERS,
W_FTP_DSN TYPE SXPGCOLIST-PARAMETERS,
W_PARCOM_LOC(150) TYPE C,
W_FNAME(16) TYPE C,
W_ERROR_FLAG(1) TYPE C.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS : S_LR_DT FOR ZISFP03-LR_DATE.
SELECTION-SCREEN END OF BLOCK B1.
START-OF-SELECTION.
PERFORM GET_DATA.
PERFORM TRANSFER_DATA_TO_FILE.
PERFORM FTP_TRANSFER.
*& Form GET_DATA
text
FORM GET_DATA.
SELECT A~VENDOR
A~LR_NO
A~EBELN
A~LR_DATE
A~PO_DATE
A~PO_BRANCH
A~TRK_NO
A~DISP_TIME
A~SCAN_NO
B~ACTU_QTY
B~MATERIAL
B~GR_BRANCH
C~STDTIME
INTO TABLE IT_FREIGHT
FROM ( ( ZISFP03 AS A
INNER JOIN ZISFP04 AS B
ON AVENDOR = BVENDOR
AND ALR_NO = BLR_NO
AND AEBELN = BEBELN )
INNER JOIN ZISFP14 AS C
ON AVENDOR = CVENDOR
AND APO_BRANCH = CFROM_LOC
AND BGR_BRANCH = CTO_LOC
AND AZMODE = CEXPRES_TY )
WHERE A~LR_DATE IN S_LR_DT.
IF SY-SUBRC EQ 0.
SORT IT_FREIGHT BY VENDOR LR_NO EBELN.
DELETE ADJACENT DUPLICATES FROM IT_FREIGHT.
ENDIF.
IT_OUTPUT[] = IT_FREIGHT[].
ENDFORM. " GET_DATA
*& Form TRANSFER_DATA_TO_FILE
text
FORM TRANSFER_DATA_TO_FILE.
MOVE 'createnew.txt' TO W_FNAME.
CONCATENATE '/usr/sap/trans/mmpp/' W_FNAME INTO W_DSN.
OPEN DATASET W_DSN FOR OUTPUT IN TEXT MODE.
IF SY-SUBRC NE 0.
WRITE : 'File open error occured.'.
STOP.
ENDIF.
LOOP AT IT_OUTPUT INTO WA_OUTPUT.
TRANSFER WA_OUTPUT TO W_DSN.
CLEAR WA_OUTPUT.
ENDLOOP.
IF SY-SUBRC NE 0.
WRITE : 'File write error occured.'.
EXIT.
ENDIF.
CLOSE DATASET W_DSN.
ENDFORM. " TRANSFER_DATA_TO_FILE
*& Form FTP_TRANSFER
text
FORM FTP_TRANSFER.
PERFORM BUILD_FTP_FILE.
PERFORM TRANSFER_FTP_FILE.
ENDFORM. " FTP_TRANSFER
*& Form BUILD_FTP_FILE
text
FORM BUILD_FTP_FILE.
W_FTP_DSN = '/usr/sap/trans/mmpp/createcheck.txt'.
CONCATENATE 'open'
'www.info.com'
INTO WA_FTP-FIELD
SEPARATED BY SPACE.
APPEND WA_FTP TO IT_FTP.
CLEAR WA_FTP.
CONCATENATE 'user'
'myusername'
'mypassword'
INTO WA_FTP-FIELD
SEPARATED BY SPACE.
APPEND WA_FTP TO IT_FTP.
CLEAR WA_FTP.
CONCATENATE 'cd'
'/oracle01/oracle/product/iSuites/Apache/Apache/htdocs/etrans/user/upload/'
INTO WA_FTP-FIELD separated by space.
APPEND WA_FTP TO IT_FTP.
CLEAR WA_FTP.
MOVE 'put /usr/sap/trans/mmpp/createnew.txt' TO WA_FTP-FIELD.
APPEND WA_FTP TO IT_FTP.
CLEAR WA_FTP.
MOVE 'close' TO WA_FTP-FIELD.
APPEND WA_FTP TO IT_FTP.
CLEAR WA_FTP.
MOVE 'bye' TO WA_FTP-FIELD.
APPEND WA_FTP TO IT_FTP.
CLEAR WA_FTP.
OPEN DATASET W_FTP_DSN FOR OUTPUT IN TEXT MODE.
LOOP AT IT_FTP INTO WA_FTP.
TRANSFER WA_FTP-FIELD TO W_FTP_DSN.
CLEAR WA_FTP.
ENDLOOP.
CLOSE DATASET W_FTP_DSN.
ENDFORM. " BUILD_FTP_FILE
*& Form TRANSFER_FTP_FILE
text
FORM TRANSFER_FTP_FILE.
FREE TABL.
CONCATENATE 'ftp -v -n < 'W_FTP_DSN INTO W_PARCOM_LOC.
CALL 'SYSTEM' ID 'COMMAND' FIELD W_PARCOM_LOC
ID 'TAB' FIELD TABL-SYS.
IF W_ERROR_FLAG = '*'.
MESSAGE I036(ZIMM).
ELSEIF W_ERROR_FLAG = 'F' .
MESSAGE I139(ZIMM) WITH W_FNAME.
ELSE.
MESSAGE I038(ZIMM) WITH W_FNAME.
ENDIF.
ENDFORM. " TRANSFER_FTP_FILE
**THE ABOVE GIVEN IS THE CODE I AM WRITING FOR THE FTP TO TRANSFER DATA FROM OUR APLICATION SERVER TO
THE REMOTE UNIX SERVER.
BUT WHEN I DO THE
CALL 'SYSTEM' ID 'COMMAND' FIELD W_PARCOM_LOC
ID 'TAB' FIELD TABL-SYS.
MY SYSTEM GOT HANGED AND GVES NO RESPONSE...
PLEASE HELP ME OUT AS EARLY AS POSSIBLE...
I WILL SURE U THAT U WULL REVERT BACK WITH POINTS...
PLEASE HELP...
ARE THERE ANY AUTHORISATIONS ISSUES..OR I AM DOING SOMETHING WRONG... -
How to access a file in Unix server from windows using java
I want to access a file in unix server from windows using java program.
I have the following code. I am able to open the url in a web browser.
String urlStr="ftp:user:passwd@unix-server:ftp-port//javatest/test.csv;type=i";
URL url = new URL(urlStr);
BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream)));
String inputLine;
while((inputLine=in.readLine()))!=null){
System.out.println(inputLine);
in.close();
I get the following error
java.io.FileNotFoundException: /javatest/test.csv
at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:333)
at java.net.URL.openStream(URL.java:960)
at com.test.samples.Test.main(Test.java:45)urlStr="ftp:user:passwd@unix-server:ftp-port//javatest/test.csv;type=i";
I have given the format of the urlStr that I am using in the code. The actiual values are used in my code. I have tried pasting this url in the browser and it opens the file. -
New install issue-unable to connect to DB server from a remote client.
Hi experts,
I am new to setting up oracle server so pls bear with me...
I setup a db server (11g on top of 64bit Oracle Linux) at home (static 192.168.1.90). I verified that db, listener are up and running. However, I tried to connect to the server from a different client machine (192.168.1.108) within my home network but the server cannot be reached. I was able to ping both client and server using the IP addresses and hostnames. I followed the following steps to perform troubleshooting but was unable to move on beyond step 3, telnet-ing the server on port 1521. Can someone help me out what I should do make the port # (1521) is reachable by the client?
1. Check with "ping" using the IP address ("ping 198.11.34.43"
2. Check with "ping" using DNS name (e.g. "tnsping uranus")
3. Try telnet to the IP on port 1521 (telnet 1.2.3.4 1521)
4. Check with "tnsping" using TNS service name
5. Invoke SQL*Plus from the OS command line "sqlplus fred@flintstone". If this fails, check to ensure that your listener is the flintstone service defined.
6. Sign-on to SQL*Plus and connect with the TNS name ("connect fred/flintstome@service_name"
7. Within SQL*Plus, try a select from table@remote_db_link
thanks a lot in advance.user6391746 wrote:
Hi experts,
I am new to setting up oracle server so pls bear with me...
I setup a db server (11g on top of 64bit Oracle Linux) at home (static 192.168.1.90). I verified that db, listener are up and running. However, I tried to connect to the server from a different client machine (192.168.1.108) within my home network but the server cannot be reached. I was able to ping both client and server using the IP addresses and hostnames. I followed the following steps to perform troubleshooting but was unable to move on beyond step 3, telnet-ing the server on port 1521. Can someone help me out what I should do make the port # (1521) is reachable by the client?
1. Check with "ping" using the IP address ("ping 198.11.34.43"
2. Check with "ping" using DNS name (e.g. "tnsping uranus")
3. Try telnet to the IP on port 1521 (telnet 1.2.3.4 1521)
4. Check with "tnsping" using TNS service name
5. Invoke SQL*Plus from the OS command line "sqlplus fred@flintstone". If this fails, check to ensure that your listener is the flintstone service defined.
6. Sign-on to SQL*Plus and connect with the TNS name ("connect fred/flintstome@service_name"
7. Within SQL*Plus, try a select from table@remote_db_link
thanks a lot in advance.solution depends upon which ERROR is thrown.
Is COPY & PASTE broken for you?
It is really, Really, REALLY difficult to fix a problem that can not be seen.
use COPY & PASTE so we can see what you do & how Oracle responds. -
How to connect to UNIX OS from oracle stored procedure
Hi,
I need to connect to UNIX OS from oracle stored procedure.
Curently working in Oracle9i.
I tried in google but I could'nt get any.
Can you send me pointers on how to do this.
Thanks,
Kavitha.Can use Java Stored Proc, or an External Proc.
Java method:
create or replace and compile Java Source named "OSCommand" as
-- java: OS COMMAND
-- descr: Executes an Operating System Command using the JAVA RTS
-- IN parameter: os command to execute (including fully qualified path names)
-- OUT parameter: returncode [\nstring]
-- where string a max of 32000 chars of the output of the command
-- (note that \n is used as separators in the string)
-- returncode=-1 Java RTS error occurred (e.g. command does not exist)
-- returncode=255 o/s command failed (e.g. invalid command params)
import java.io.*;
import java.lang.*;
public class OSCommand{
public static String Run(String Command){
Runtime rt = Runtime.getRuntime();
int rc = -1;
try{
Process p = rt.exec( Command );
int bufSize = 32000;
int len = 0;
byte buffer[] = new byte[bufSize];
String s = null;
BufferedInputStream bis = new BufferedInputStream( p.getInputStream(), bufSize );
len = bis.read( buffer, 0, bufSize );
rc = p.waitFor();
if ( len != -1 ){
s = new String( buffer, 0, len );
return( s );
return( rc+"" );
catch (Exception e){
e.printStackTrace();
return( "-1\ncommand[" + Command + "]\n" + e.getMessage() );
show errors
create or replace function osexec( cCommand IN string ) return varchar2 is
-- function: OS EXEC
-- descr: Executes an Operating System Command
language JAVA
name 'OSCommand.Run(java.lang.String) return java.lang.String';
show errors===
This can then be used from PL/SQL and even SQL. e.g.
SQL> select osexec( '/bin/date' ) from dual;
OSEXEC('/BIN/DATE')
Wed Nov 9 13:30:13 SAST 2005
SQL>Note the Java permissions required - replace FOO with the name of applicable Oracle schema
==begin
dbms_java.grant_permission(
'FOO',
'SYS:java.io.FilePermission',
'<<ALL FILES>>',
'execute'
dbms_java.grant_permission(
'FOO',
'SYS:java.lang.RuntimePermission',
'writeFileDescriptor',
dbms_java.grant_permission(
'FOO',
'SYS:java.lang.RuntimePermission',
'readFileDescriptor',
commit;
end;
/==
Last thing... note that opens a potential giant size security hole into the Oracle Server Platform. So implement it properly using a proper Oracle security model. -
Oracle directory at remote unix server
Hi,
We have created a oracle directory which is pointing to the remote unix server. The unix admin the path is mounted ( i donot understand much about mounting).
The problem is the directory is visible in the all_directory view but it says when “the directory is not valid” when we try to write to this directory.
Nordick>
We have created a oracle directory which is pointing to the remote unix server. The unix admin the path is mounted ( i donot understand much about mounting).
The problem is the directory is visible in the all_directory view but it says when “the directory is not valid” when we try to write to this directory.
>
When you create a directory object oracle doesn't do any validation until the point you try to access that directory object. So please try checking from the $ prompt whether you are able to access that directory. If so then verify the owner of the listener process has access to the directory.
Regards
Raj -
Unable to connect to Admin Server from second machine using WLST
Hello,
PROBLEM
Can't get WLST to connect to admin server from 2nd host to register the domain.
SETUP
I have 2 Centos VMs running on Oracle Virtual box in a single laptop. Both the VMs use "Bridged Networking".
VM-1 CONFIG
cat /etc/hosts
192.168.1.17
dom1 dom1.my mac1
192.168.1.51
centos2 mac2
VM-1 hosts admin server & one managed server
VM-2 CONFIG
192.168.1.51
mac2
192.168.1.17
centos1 mac1
VM-2 hosts just one managed server
I can start up admin on VM-1 fine. The node manager is reachable too. Both the VMs are can be pinged from each other. I can also telnet to the admin server's port ( telnet 192.168.1.17 7001) from the second server.
My HOST OS is Windows 7. I can ping from windows to both the VM IPs too. The reverse is working fine as well.
I've tried both mechanisms of copying the whole domain from machine 1 over to machine2 & also using the pack.sh/unpack.sh combinations to transfer the domains.
When I invoke WLST, this is what happens
./wlst.sh
CLASSPATH=/apps/prod/appservers/weblogic/wls_10_3_6/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/apps/prod/appservers/weblogic/wls_10_3_6/patch_ocp371/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.25.x86_64/lib/tools.jar:/apps/prod/appservers/weblogic/wls_10_3_6/wlserver_10.3/server/lib/weblogic_sp.jar:/apps/prod/appservers/weblogic/wls_10_3_6/wlserver_10.3/server/lib/weblogic.jar:/apps/prod/appservers/weblogic/wls_10_3_6/modules/features/weblogic.server.modules_10.3.6.0.jar:/apps/prod/appservers/weblogic/wls_10_3_6/wlserver_10.3/server/lib/webservices.jar:/apps/prod/appservers/weblogic/wls_10_3_6/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/apps/prod/appservers/weblogic/wls_10_3_6/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar::/apps/prod/appservers/weblogic/wls_10_3_6/utils/config/10.3/config-launch.jar::/apps/prod/appservers/weblogic/wls_10_3_6/wlserver_10.3/common/derby/lib/derbynet.jar:/apps/prod/appservers/weblogic/wls_10_3_6/wlserver_10.3/common/derby/lib/derbyclient.jar:/apps/prod/appservers/weblogic/wls_10_3_6/wlserver_10.3/common/derby/lib/derbytools.jar::
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
wls:/offline> connect('weblogic','weblogic123','t3://192.168.1.17:7001')
Connecting to t3://192.168.1.17:7001 with userid weblogic ...
Traceback (innermost last):
File "<console>", line 1, in ?
File "<iostream>", line 22, in connect
File "<iostream>", line 648, in raiseWLSTException
WLSTException: Error occured while performing connect : Error connecting to the server : Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.
Use dumpStack() to view the full stacktrace
wls:/offline> dumpStack()
This Exception occurred at Fri Oct 11 17:11:07 NZDT 2013.
java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.
java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.
wls:/offline>
Also, I can't invoke weblogic.Admin from the second VM despite setting the environment using "setWLSEnv.sh". i get the error "Error: Could not find or load main class weblogic.Admin".
Please could you help me fix this? I've spent 3 days now trying numerous things without much luck :-(
Kind RegardsHi Raj,
Issue is with NM registry with domain home. Please follow the below steps and let us know the status.
1 . Check whether the node manager port ( default 5556 ) is opened for communication on both Admin and Managed server.
2 . After opening the port - We would need to enroll the node manager home with domain home to establish the communication between Admin and Managed server.
a . Start the Administration Server.
b . Using the Administration Console update the Node Manager credentials from the Advanced options under domain_nameArrow symbolSecurityArrow symbolGeneral.
c . Invoke WLST and connect to an Administration Server using the connect command. See Using the WebLogic Scripting Tool in WebLogic Scripting Tool.
d . Run nmEnroll using the following syntax:
nmEnroll([domainDir], [nmHome])
Running nmEnroll() ensures that the correct Node Manager user and password token are supplied to each Managed Server. Once these are available for each Managed Server, you can use nmConnect() in a production environment.
Note: You must run nmEnroll() on each machine that is running a Managed Server. Additionally, you should run nmEnroll() for each domain directory on each machine.
For more info : General Node Manager Configuration
Thanks
Lakshman -
Connecting unix server using java/jsp
Hi ALL,
Could you please give me solution ,I want to connect unix server from jsp and I want to run one .ksp file from jsp fileDefine "connect".
Define "run". -
Connect to MS Sql Server from Java Source
Hi,
Is there any way I could connect to ms sql server from Java source? I know I can call java source from function thats easy but what I really want is capability to connect to non-oracle(MS SQL server) from my java source and then call it from function.
I don't know if JDBC driver for SQL server is even installed/available. Is there a way I could find it out form my IDE? I know sqlJ does compile but I have never used sqlj. help!!!
SinhaYou'll probably have better luck in a Java forum or a Microsoft forum.
-
Unable to connect remote LDAP server 2005Q1
To connect remote LDAP server with local mail server in iMS5.2, it was successful and very easy.
But, with Sun Java Messaging 2005Q1, I failed so many times when I configure mail server.
Only two things( LDAP and messaging ) are in the same machine, it was successful.
It's very weird.
In Install Guide, remote LDAP system has no problem to connect with local mail server.
Here is LDAP server version.
# ./monitor
version: 1
dn: cn=monitor
objectClass: top
objectClass: extensibleObject
cn: monitor
connectionpeak: 9
version: Sun Java(TM) System Directory Server/5.2_Patch_3 B2004.331.1125
Messaging server version is Sun Java Messaging 2005Q1.
================ Install Log ================
The following items for the product Messaging Server will be configured:
Product: Messaging Server
Location: /data/MailData
Space Required: 0 bytes
Message Transfer Agent
Message Store
Messenger Express
Ready to Configure
1. Configure Now
2. Start Over
3. Exit Configure Program
What would you like to do [1] {"<" goes back, "!" exits}?
Starting Task Sequence
===== Thu Apr 21 18:50:38 KST 2005 =====
Running /usr/sbin/groupadd mail
===== Thu Apr 21 18:50:38 KST 2005 =====
Running /usr/sbin/useradd -g mail -d / mailsrv
===== Thu Apr 21 18:50:38 KST 2005 =====
Running /usr/sbin/usermod -G mail mailsrv
===== Thu Apr 21 18:50:38 KST 2005 =====
Running /bin/rm -rf /opt/java05Q1/Mail/config /opt/java05Q1/Mail/data
===== Thu Apr 21 18:50:38 KST 2005 =====
Running /bin/chmod 600 /opt/java05Q1/Mail/lib/config-templates/Devsetup.
properties
===== Thu Apr 21 18:50:38 KST 2005 =====
Running /opt/java05Q1/Mail/lib/devinstall -l schema1:sepadmsvr:pkgcfg:config:
msg:msg_en:imta:msma:webmail:imta -v -m -i /opt/java05Q1/Mail/lib/config-
templates/config.ins /opt/java05Q1/Mail/lib/config-templates
/opt/java05Q1/Mail/lib/jars /opt/java05Q1/Mail/lib
===== Thu Apr 21 18:50:45 KST 2005 =====
Running /bin/sh -c /opt/java05Q1/Mail/sbin/imsimta clbuild -
image_file=IMTA_COMMAND_DATA IMTA_BIN:pmdf.cld
===== Thu Apr 21 18:50:46 KST 2005 =====
Running /bin/sh -c /opt/java05Q1/Mail/sbin/imsimta chbuild
===== Thu Apr 21 18:50:46 KST 2005 =====
Running /opt/java05Q1/Mail/lib/ldapmodify -h love.daou.co.kr -p 389 -D
cn=Directory Manager -j /opt/java05Q1/Mail/lib/config-templates/cfgdir23381 -c -
e /opt/java05Q1/Mail/config/cfgdir.ldif.rej -f /opt/java05Q1/Mail/config/cfgdir.
ldif
===== Thu Apr 21 18:50:46 KST 2005 =====
Running /opt/java05Q1/Mail/lib/ldapmodify -h love.daou.co.kr -p 389 -D
cn=Directory Manager -j /opt/java05Q1/Mail/lib/config-templates/ugdir23382 -c -
e /opt/java05Q1/Mail/config/usergroup.ldif.rej -f
/opt/java05Q1/Mail/config/usergroup.ldif
===== Thu Apr 21 18:50:46 KST 2005 =====
Running /opt/java05Q1/Mail/lib/ldapmodify -h love.daou.co.kr -p 389 -D
cn=Directory Manager -j /opt/java05Q1/Mail/lib/config-templates/ugdir23382 -c -
e /opt/java05Q1/Mail/config/dctree.ldif.rej -f /opt/java05Q1/Mail/config/dctree.
ldif
===== Thu Apr 21 18:50:46 KST 2005 =====
Running /opt/java05Q1/Mail/lib/ldapmodify -h love.daou.co.kr -p 389 -D
cn=Directory Manager -j /opt/java05Q1/Mail/lib/config-templates/ugdir23382 -c -
e /opt/java05Q1/Mail/config/mid_dctree.ldif.rej -f
/opt/java05Q1/Mail/config/mid_dctree.ldif
===== Thu Apr 21 18:50:47 KST 2005 =====
Running /opt/java05Q1/Mail/lib/ldapmodify -h love.daou.co.kr -p 389 -D
cn=Directory Manager -j /opt/java05Q1/Mail/lib/config-templates/ugdir23382 -c -
e /opt/java05Q1/Mail/config/last_dctree.ldif.rej -f
/opt/java05Q1/Mail/config/last_dctree.ldif
===== Thu Apr 21 18:50:47 KST 2005 =====
Running /opt/java05Q1/Mail/lib/ldapmodify -h love.daou.co.kr -p 389 -D
cn=Directory Manager -j /opt/java05Q1/Mail/lib/config-templates/ugdir23382 -c -
e /opt/java05Q1/Mail/config/pab.ldif.rej -f /opt/java05Q1/Mail/config/pab.ldif
===== Thu Apr 21 18:50:47 KST 2005 =====
Running /bin/sh -c /opt/java05Q1/Mail/sbin/imsimta cnbuild
===== Thu Apr 21 18:50:47 KST 2005 =====
Running /bin/sh -c /bin/cp /opt/java05Q1/Mail/lib/config-
templates/madman_solaris.reg /etc/snmp/conf/ims.reg
===== Thu Apr 21 18:50:47 KST 2005 =====
Running /bin/sh -c /bin/cp /opt/java05Q1/Mail/lib/config-
templates/madman_solaris.acl /etc/snmp/conf/ims.acl
===== Thu Apr 21 18:50:47 KST 2005 =====
Running /bin/sh -c /usr/bin/crle
===== Thu Apr 21 18:50:47 KST 2005 =====
Running /bin/sh -c /usr/bin/crle -s /usr/lib/secure -s /opt/java05Q1/Mail/lib
===== Thu Apr 21 18:50:48 KST 2005 =====
Running /bin/sh -c /usr/bin/crle
===== Thu Apr 21 18:50:48 KST 2005 =====
Running /bin/sh -c /bin/cp -rpf /opt/java05Q1/Mail/lib/config-templates/html
/opt/java05Q1/Mail/config/
===== Thu Apr 21 18:50:57 KST 2005 =====
Running /bin/chown -Rh mailsrv /opt/java05Q1/Mail/config/html
===== Thu Apr 21 18:50:57 KST 2005 =====
Running /bin/chgrp -Rh mail /opt/java05Q1/Mail/config/html
===== Thu Apr 21 18:50:57 KST 2005 =====
Running /bin/sh -c /bin/cp -rpf /opt/java05Q1/Mail/config
/opt/java05Q1/Mail/install/configure_20050421184758
===== Thu Apr 21 18:51:08 KST 2005 =====
Running /bin/sh -c /bin/cp -p /opt/java05Q1/Mail/lib/config-templates/Devsetup.
properties /opt/java05Q1/Mail/install/configure_20050421184758/Devsetup.
properties
Sequence Completed
PASSED: /usr/sbin/groupadd mail : status = 9
PASSED: /usr/sbin/useradd -g mail -d / mailsrv : status = 0
PASSED: /usr/sbin/usermod -G mail mailsrv : status = 3
PASSED: /bin/rm -rf /opt/java05Q1/Mail/config /opt/java05Q1/Mail/data : status
= 0
PASSED: /bin/chmod 600 /opt/java05Q1/Mail/lib/config-templates/Devsetup.
properties : status = 0
FAILED: /opt/java05Q1/Mail/lib/devinstall -l schema1:sepadmsvr:pkgcfg:config:
msg:msg_en:imta:msma:webmail:imta -v -m -i /opt/java05Q1/Mail/lib/config-
templates/config.ins /opt/java05Q1/Mail/lib/config-templates
/opt/java05Q1/Mail/lib/jars /opt/java05Q1/Mail/lib : status = 1
PASSED: /bin/sh -c /opt/java05Q1/Mail/sbin/imsimta clbuild -
image_file=IMTA_COMMAND_DATA IMTA_BIN:pmdf.cld : status = 0
PASSED: /bin/sh -c /opt/java05Q1/Mail/sbin/imsimta chbuild : status = 0
FAILED: /opt/java05Q1/Mail/lib/ldapmodify -h love.daou.co.kr -p 389 -D
cn=Directory Manager -j /opt/java05Q1/Mail/lib/config-templates/cfgdir23381 -c -
e /opt/java05Q1/Mail/config/cfgdir.ldif.rej -f /opt/java05Q1/Mail/config/cfgdir.
ldif : status = 89
FAILED: /opt/java05Q1/Mail/lib/ldapmodify -h love.daou.co.kr -p 389 -D
cn=Directory Manager -j /opt/java05Q1/Mail/lib/config-templates/ugdir23382 -c -
e /opt/java05Q1/Mail/config/usergroup.ldif.rej -f
/opt/java05Q1/Mail/config/usergroup.ldif : status = 89
FAILED: /opt/java05Q1/Mail/lib/ldapmodify -h love.daou.co.kr -p 389 -D
cn=Directory Manager -j /opt/java05Q1/Mail/lib/config-templates/ugdir23382 -c -
e /opt/java05Q1/Mail/config/dctree.ldif.rej -f /opt/java05Q1/Mail/config/dctree.
ldif : status = 89
FAILED: /opt/java05Q1/Mail/lib/ldapmodify -h love.daou.co.kr -p 389 -D
cn=Directory Manager -j /opt/java05Q1/Mail/lib/config-templates/ugdir23382 -c -
e /opt/java05Q1/Mail/config/mid_dctree.ldif.rej -f
/opt/java05Q1/Mail/config/mid_dctree.ldif : status = 89
FAILED: /opt/java05Q1/Mail/lib/ldapmodify -h love.daou.co.kr -p 389 -D
cn=Directory Manager -j /opt/java05Q1/Mail/lib/config-templates/ugdir23382 -c -
e /opt/java05Q1/Mail/config/last_dctree.ldif.rej -f
/opt/java05Q1/Mail/config/last_dctree.ldif : status = 89
FAILED: /opt/java05Q1/Mail/lib/ldapmodify -h love.daou.co.kr -p 389 -D
cn=Directory Manager -j /opt/java05Q1/Mail/lib/config-templates/ugdir23382 -c -
e /opt/java05Q1/Mail/config/pab.ldif.rej -f /opt/java05Q1/Mail/config/pab.ldif
: status = 89
PASSED: /bin/sh -c /opt/java05Q1/Mail/sbin/imsimta cnbuild : status = 0
PASSED: /bin/sh -c /bin/cp /opt/java05Q1/Mail/lib/config-
templates/madman_solaris.reg /etc/snmp/conf/ims.reg : status = 0
PASSED: /bin/sh -c /bin/cp /opt/java05Q1/Mail/lib/config-
templates/madman_solaris.acl /etc/snmp/conf/ims.acl : status = 0
PASSED: /bin/sh -c /usr/bin/crle : status = 0
PASSED: /bin/sh -c /usr/bin/crle -s /usr/lib/secure -s /opt/java05Q1/Mail/lib :
status = 0
PASSED: /bin/sh -c /usr/bin/crle : status = 0
PASSED: /bin/sh -c /bin/cp -rpf /opt/java05Q1/Mail/lib/config-templates/html
/opt/java05Q1/Mail/config/ : status = 0
FAILED: /bin/chown -Rh mailsrv /opt/java05Q1/Mail/config/html : status = 1
FAILED: /bin/chgrp -Rh mail /opt/java05Q1/Mail/config/html : status = 1
PASSED: /bin/sh -c /bin/cp -rpf /opt/java05Q1/Mail/config
/opt/java05Q1/Mail/install/configure_20050421184758 : status = 0
PASSED: /bin/sh -c /bin/cp -p /opt/java05Q1/Mail/lib/config-templates/Devsetup.
properties /opt/java05Q1/Mail/install/configure_20050421184758/Devsetup.
properties : status = 0
FAILURE: Number of task failed:9. Please check install log
/opt/java05Q1/Mail/install/configure_20050421184758.log
for further details.
Hit NEXT to continue
Configuration Details:
Product Result More Information
1. Messaging Server Failed Available
2. Done
Enter the number corresponding to the desired selection for more
information, or enter 2 to continue [2] {"!" exits}:
================
Any Good ADVICE would be welcomed.I already did what you advised - installing admin server on each machine. I tested throught connecting admin console,modifying ldap,mail config and adding users.
To say about running 'comm_dssetup.pl' script , if I didn't I could not even setup and configure mail server.
In a month, there is a chance to setup both mail and ldap servers on diferrent machines.
I am a little bit worry. What did I wrong?
welcomed... any words of advice.. -
Error while connecting to SQL SERVER from OWB
HI All,
I got the following error while connecting to SQL SERVER from OWB(10gR2).
1). Created DSN with (GMSCADA)
2). tnsnames file is updated with the following information
GMSCADA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.60.29)(PORT = 1433))
(CONNECT_DATA =
(SERVICE_NAME = SA)
3). Tried to connect to SQL SERVER frm OWB
Username: sa
password: sa
host: 172.16.60.29
port: 1433
service name: GMSCADA
schema: sa
I got the following error, when I click Test Connection:
ORA-28545: error diagnosed by Net8 when connecting to an agent
Unable to retrieve text of NETWORK/NCR message 65535
ORA-02063: preceding 2 lines from OWB_3095
Regards,
Kumar.Hi David,
What is Gateway, How I have to setup, Please let me know.
I tried according to the Demo, But still I am facing the same problem. Which system IP I have to put in the host details.
Can u please let me know.
Regards,
Kumar.
Maybe you are looking for
-
Install acrobat 9 standard to new PC without CD (lost) error invalid serial number
Why I have serial number but cannot install to new PC
-
Why does it take CS4 Encore 2 days to transcode Blu-ray h.264 High Def
I have been trying to create a Blu-ray disc for Days by adobe dynamic link from Adobe Premiere Pro. I have no problems with creating a DVD. I only have problems when I try sending over 1080i High Definition footage instead of Standard Definition. I w
-
I would appreciate some help please. I have uninstalled and then re-installed the program, but I get the same message.
-
Code for getting any telephone number on the pc
Respected Sir: My problem is that my telephone is connected with another telephone.That telephone is connected with the PC via a modem. I want to get such kind of code which will help me to detect any number,dialing that telephone which is connected
-
Why do I get a Code 41 error when I try to printing on my hp F2400 printer
I can not make my printer work. Help.