Connecting from linux to linux-help me on thjis asap please
Hi all,
I want to know how we conect linux machine from another linux machine remotely(This is basically for connecting home to office computer).In windows i used putty and used the following steps to connect it.But how do i do it in linux please advise with steps.
steps to connect from windows:
Steps to create VPN connection
1) go to mynetowrks , click on view connection, click on Create connection
2) select Connect to network (using VPN) click on next
3) select VPN connection click next
4) Give ip address 61.85.76.56 and open putty and i give my system ip 26.0.0.45 and
i can just give username and password and started working remotely.Please advise how to do the same in linux.Thanks in advance.
I did a google search for putty and found that putty is an ssh client. The Arch ssh program is openssh. Once you have it installed, do a
man ssh
and search for 'virtual' or 'vpn'. Follow the examples there.
Similar Messages
-
Help with Oracle 10g Client Connectivity from Linux to IBM SAN storage
Hello Oracle Experts,
This is my first post. My client is having oracle 10g database up and running in IBM SAN storage.
We have some NMS tools running in Red Hat Linux version 5. So, these tools require connectivity to Oracle database which is residing in SAN storage connected with the Fibre cables.
How do I establish the connectivity from Linux to SAN storage. If would be glad if you can explain me the steps and also if there is any pre-installation/post-installation, patches and procedures involved.
If it is IP based network we normally give the IP address of the host running the database server. I have no idea about SAN storage connected with Fibre cable.
Please guide me to establish the connectivity from linux 5 to SAN.
Thanks.
Regards,
RaviShankar.user13153556 wrote:
Hi Rajesh,
Actually I will not be touching the Oracle instance SAN box directly. I will only access the database from another machine. I my case it is Linux box.
So, my question is how do you make the Oracle Client in Linux box to connect to Oracle instance running in another non ip based machine SAN storage.Install Oracle client on this Linux machine ..
Make sure you have network connectivity from linux machine to database server. You need to connect to server where db instance is running and you need not to bother about SAN storage.
make tns entry into client $ORACLE_HOME/network/admin/tnsnames.ora file.
Use sqlplus to connect to database using client.
Regards
Rajesh -
I need help fixing kernel panic asap please help
i need help fixing kernel panic asap please help
OS X- About kernel panics
Mac OS X- How to log a kernel panic
Post a copy of your most recent complete panic log. -
Can't connect from Linux machine to Mac
Hello,
Having trouble connecting from a linux machine (Fedora Core 4) to my mac. I see the mac in the "Network" dialog box ("Places->Connect to Server" on Gnome). When i try to connect to it, i get the authentication required dialog, put my info in, but no dice.
Any ideas?Very strange. When do you get the permission denied message? Do you get the prompt to enter a password?
Are both users admins? There may be some restrictions for non admin users.
My guess is that either you don't enter the right username or password or IP (but I guess you triple verified that a million times already?), or that you already have modified some configuration of the Mac. ssh should work out of the box, after you enable it, but there are ways to invalidate it.
If you do
<pre>
ls -al /usr/bin/ssh
</pre>
what do you get?
</pre>
PowerBook G4 Mac OS X (10.4) -
Invoking SQL Loader from linux - Help Needed
Hi All,
When i tried to invoke the sql loader from linux by using following command
sqlldr username@server/password control=loader.ctl
But its always throws this message
Message 2100 not found; No message file for product=RDBMS, facility=ULMessage 2100 not found; No message file for product=RDBMS, facility=UL
Can somebody help me to fix this issue?You may need to set your Oracle environment, try this ($ is the command prompt):
$ export ORACLE_SID=orcl
$ . /usr/local/bin/oraenv
$ sqlldr username@server/password control=loader.ctl:p -
Not able to connect from linux client. Get TNS-12560: TNS:protocol adapter
Hi,
Details of the configuration :
Server:
RHEL4: 10.2.0.3 Oracle Enterprise Database installed.
SID = orcl, port 1521.
Client:
RHEL4 : 10.2.0.x client installed.
Whenever, I try to connect from Client to server, I get following error:
For tnsping orcl I get following error :
TNS-12560: TNS:protocol adapter error
I get the same error even, If I do a sqlplus "scott/tiger@orcl" with TNS_ADMIN, ORACLE_HOME everything set correctly.
On the server, I am able to connect to the same db without any problem. I have following env set ORACLE_HOME, TNS_ADMIN and PATH. Here, I am trying to make sure that the sqlplus goes through the listner.
Any help is appreciated. Please let me know if you need more information.
Thanks much.
V.ChandrashekarEnsure your listener is properly configured and started. Check the listener's address and verify you can tnsping it with the tnsping command:
tnsping orcl
On the other side, make sure your tnsnames.ora file on the client side has properly configured the address where the listener is located.
~ Madrid -
Oracle Name Server connect from Linux
In our Company we have three Oracle Nameserver running and defined in the sqlnet.ora file.
My Problem:
when the first Server is not reachable, the Linux Client (8.1.5 or 8.1.7) does not try the second or last one (timed out forever).
Under HP-UX or Windows Clients, everything worked as expected.
Any Hints ???
Wolfgang Brungert926884 wrote:
Oracle has been installed in Win server 2003 as server.
i have Ubuntu 12.04 and i want to connect to OraDB server. For that you need the very same thing as you need on a Windows client - an Oracle client driver. The easiest to install (where install means unzipping and use) is Oracle's Instant Client.
The very same install method (unzipping) applies to both Windows and Linux. Optionally, you can also create a tnsnames.ora file if you want to make use of aliases to lookup connection strings.
in winXP i am using PL/SQL developer and i need any free and Open source software in ubuntu to connect to OraDB serve. is there any software?SQL*Plus is also available for Instant Client as an additional download. Always a good idea to have the definitive command line interface client to Oracle.
SQL-Developer is also available from Oracle for free. Again, the installation instructions for Windows and Linux are basically identical. Download the base install if you have Java already installed. Or download the version that includes the Java run-time for running SQL-Developer.
There's also a TOAD-like tool available for Linux and Windows called TOra. It supports Oracle, MySQL, PostgreSQL and Teradata databases. -
Playbook Spazzes Out When Connected from HDMI to TV - Help
I have tried this a handful of times before and after OS2 released, hoping the new OS would be the fix. Whenever I connect my playbook by HDMI to my TV, it spazzes out completely. The playbook will open web pages, open and chage settings in the main menu, open applications... It is just doing a lot of "ghost" activity very quickly. I cannot find much info out on the web about similar issues. Playbook never does this in any other circumstances and my TV is new and works fine on other devices. HDMI cable is also new and works with other devices.
I appreciate the help of any Blackberry Gurus out there!Is your tv grounded properly? Are you using the supplied playbook charger? Or just hdmi when this happens? I know weird stuff happens when using the wrong charger, my wife tried to use a LG charger and it did weird stuff like that. The output was real dirty on a scope.
Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
BESAdmin's, please make a signature with your BES environment info.
SIM Free BlackBerry Unlocking FAQ
Follow me on Twitter @knottyrope
Want to thank me? Buy my KnottyRope App here
BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V -
Need help with boot camp asap, please.
Hi, I accidently installed windows 7 without copying 3.0 boot camp files and the disk is not with me it's like in another country. Is there a way to download boot camp 3.0? cause currently I cannot go back to OS stuck on Windows. What should I do? all my stuff is on OS..help would be great, please.
You can not download the BC 3.0 drivers, they are only available from the disk.
Reboot and hold the option key down, select OSX and Read The Boot Camp Directions before you break something! -
Help in production environment ASAP please
Hello,
I'm in a middle of a problem right now on our production environment.
I need to read and compare the information inside a long datatype column.
To do this I use the following function to read the long field:
create or replace function getlong_vw( p_tname in varchar2,
p_cname in varchar2,
p_cname2 in varchar2) return varchar2
as
l_cursor integer default dbms_sql.open_cursor;
l_n number;
l_long_val varchar2(32767);
l_long_len number;
l_buflen number := 4000;
l_curpos number := 0;
l_pos_start number := 1;
counter integer := 0;
l_long_txt varchar2(32767);
begin
dbms_sql.parse( l_cursor,
'select ' || p_cname || ' from ' || p_tname ||
' where view_name = :x',
dbms_sql.native );
dbms_sql.bind_variable( l_cursor, ':x', p_cname2 );
dbms_sql.define_column_long(l_cursor, 1);
l_n := dbms_sql.execute(l_cursor);
if (dbms_sql.fetch_rows(l_cursor)>0)
then
dbms_sql.column_value_long(l_cursor, 1, l_buflen, l_curpos ,
l_long_val, l_long_len );
end if;
dbms_sql.close_cursor(l_cursor);
return l_long_val;
end getlong;
But with this, I can only read the first 4000 bytes inside the long field.
What I need, is read more then that, eventually until the 32Kb limit.
So I try to use a while loop before the column_value_long and put the data inside a 32Kb varchar2 variable and return in the end
Something like :
if (dbms_sql.fetch_rows(l_cursor)>0)
then
while l_pos_start <= 32767 loop
dbms_sql.column_value_long(l_cursor, l_pos_start, l_buflen, 0 ,
l_long_val, l_long_len );
l_pos_start := l_pos_start+l_buflen;
l_long_txt := l_long_txt||l_long_val;
end loop;
end if;
dbms_sql.close_cursor(l_cursor);
return l_long_txt;
end getlong;
But I keep getting the error ORA-01007: variable not in select list
Can anyone help me, what I'm doing wrong?
How can I return the value inside a long field until the 32Kb and not only the first 4000 bytes?
Thank you very much in advance
RuiSorry guys,
Keith is right, I mess up the code when I made the copy paste.
This is the current function code:
CREATE OR REPLACE FUNCTION Getlong
(p_tname IN VARCHAR2,
p_cname IN VARCHAR2,
p_rowid IN ROWID)
RETURN VARCHAR2
AS
l_cursor INTEGER DEFAULT dbms_sql.open_cursor;
l_n NUMBER;
l_long_val VARCHAR2(32767);
l_long_len NUMBER;
l_buflen NUMBER := 4000;
l_curpos NUMBER := 0;
l_pos_start NUMBER := 1;
counter INTEGER := 0;
l_long_txt VARCHAR2(32767);
BEGIN
dbms_sql.Parse(l_cursor,'select '
||p_cname
||' from '
||p_tname
||' where rowid = :x',dbms_sql.native);
dbms_sql.Bind_variable(l_cursor,':x',p_rowid);
dbms_sql.Define_column_long(l_cursor,1);
l_n := dbms_sql.Execute(l_cursor);
IF (dbms_sql.Fetch_rows(l_cursor) > 0) THEN
WHILE l_pos_start <= 32767 LOOP
dbms_sql.Column_value_long(l_cursor,l_pos_start,l_buflen,0,l_long_val,
l_long_len);
l_pos_start := l_pos_start + l_buflen;
l_long_txt := l_long_txt
||l_long_val;
END LOOP;
END IF;
dbms_sql.Close_cursor(l_cursor);
RETURN l_long_txt;
END getlong;
If I have the while loop function comment, the function works well and return the first 4000 charaters of the long field.
If I try to use the while to get more characters I get the ORA-01007: variable not in select list
What I'm doing wrong?
Thank You
Edited by: user1242475 on 27/Fev/2009 17:40
Edited by: user1242475 on 27/Fev/2009 17:41 -
I have some socket code that works fine in Windows and Mac.
However, the socket
wont connect or
throw an error in the Linux flash player (debug or normal).
Below is a code fragment. I can't find any reference to any special
circumstances for Linux. If I am doing something wrong, then some
help would be greatly appreciated.
import flash.net.Socket;
import flash.events.IOErrorEvent;
import flash.events.SecurityErrorEvent;
import flash.system.Security;
private var socket: Socket = new Socket();
public function connectToLogger( ipAddress: String = null,
ipPort: int = 8000): void
// event for when the server connection is established.
socket.addEventListener( Event.CONNECT, onConnect );
// event for when the server closes the socket.
socket.addEventListener( Event.CLOSE, onClose );
// event for when there is an I/O error event logged during
connection.
socket.addEventListener( IOErrorEvent.IO_ERROR, onIOError );
// event for when there is an security error event logged
during connection.
socket.addEventListener( SecurityErrorEvent.SECURITY_ERROR,
onSecurityError );
// Listen for when data is received from the socket server
socket.addEventListener( ProgressEvent.SOCKET_DATA,
onSocketData );
try
trace( "Trying to connect (" + ipAddress + ": " + ipPort +
socket.connect( ipAddress, ipPort );
catch( error: SecurityError )
trace( "socket.connect error" + error );
catch( error: IOError )
trace( "socket.connect error" + error );
trace( "socket.connected = " + socket.connected );Turns out it was a bug in the Flash player. The beta player
released on 21st of August 2007 successfully connects from
Linux. -
Dear Friend,
I have installed oracle on linux and configure the tns and listener.ora , now I can connect from Linux oracle database to Windows oracle database but I can connect
from windows database to Linux database its giving me this error "No Listener" and I configured the tns in windows also, any comment will be appreciated.
Regards,
Oracle User.Have you started the listener on the linux machine? In windows, it mabe starting automatically (SERVICE). In linux you need to start manually.
Do a "ps --ef |grep tns" on the linux machine command line and see the output. It should show one process. If not, do this
lsnrctl
start listener <<listener_name>>
If you don't provide the listener name, a default listener with the name "LISTENER" will be started.
Hope this helps
thedba -
RFC connection from SAP Data services to SAP ECC
We have data services set up in linux machine. I am trying to set up RFC connection between data services and SAP ECC.
From data management console after creating RFC connection i am getting "RFC_bad_connection" error message. Username , password, system number, hostname and client is working from SAP GUI and has all the authorizations. SAP gateway and service is name is correct.
Did anyone had similar issue and what was the solution. Do we have start the RFC connection from linux data services machine, i didn't see any sh executable to do so.
Thanks in advance for helping to solve the RFC connection issue.
Edited by: gupta sasha az on Dec 19, 2011 7:24 PMI am new to SAP and we have just started work on Data Services.
I wanted to know the complete procedure as in how can I establish a connection between Data Services and ECC.
Thanks for your help and time. -
Connect from workstation using local credentials
AD is W2008r2,
recently moved a W2008 WebServer from a PDC to this AD's domain, the local login to the WebServer is still using WebServer local accounts.
How can I still allow users from W7 workstations to use a "net share" using the WebServer's credentials?
What we were doing was:
net use W: \\mxWeb\h 369874125A /user:mxWeb\user0 from workstations to get access ,
but since the switch to new AD that gives errors of
System error 1326 has occurred. Logon Failure: unknown user name or bad password.
I can not find how to allow this to happen in the Local Security Policy settings.
(it would be nice to get samba connections from Linux pc's to work again too, Centos 5 & 6 - samba3.6)
TechNetnet use W: \\mxWeb.blahblah.COM\h 369874125A
/user:mxWeb.blahblah.COM\user0 ?
User0 is a local use on mxWeb.blahblah.COM.
Correct?
try to delete all connection using Net Use * /D first
Santhosh Sivarajan | Houston, TX | www.sivarajan.com
ITIL,MCITP,MCTS,MCSE (W2K3/W2K/NT4),MCSA(W2K3/W2K/MSG),Network+,CCNA
Windows Server 2012 Book - Migrating from 2008 to Windows Server 2012
Blogs: Blogs
Twitter: Twitter
LinkedIn: LinkedIn
Facebook: Facebook
Microsoft Virtual Academy:
Microsoft Virtual Academy
This posting is provided AS IS with no warranties, and confers no rights. -
Unable to connect to Oracle database running on Windows machine from linux.
Hi,
I'm not able to connect to oracle database running on Windows machine from Linux machine. I'm geting the below mentioned error. I have given below the code I used to connect to database and database propertes.Do I need to use any specific driver?
Please help me.
Thanks,
Sunjyoti
Code :
import oracle.jdbc.pool.OracleDataSource;
import java.sql.Connection;
import java.util.*;
import java.sql.*;
import java.io.*;
class try2{
public static void main(String args[]) {
try {
System.out.println("hi");
// Load the properties file to get the connection information
Properties prop = new Properties();
prop.load(new FileInputStream("/home/sreejith/EDIReader/Connection.properties"));
// Create a OracleDataSource instance
OracleDataSource ods = new OracleDataSource();
System.out.println("prop is "+prop);
configureDataSource(ods, prop);
Connection conn=null;
// Create a connection object
conn = ods.getConnection();
System.out.println("Connection is"+conn);
// Sets the auto-commit property for the connection to be false.
conn.setAutoCommit(false);
} catch (SQLException sqlEx){ // Handle SQL Errors
System.out.println("In exception "+sqlEx);
} catch(Exception excep) { // Handle other errors
System.out.println(" Exception "+ excep.toString());
private static void configureDataSource(OracleDataSource ods, Properties prop) {
// Database Host Name
ods.setServerName(prop.getProperty("HostName"));
// Set the database SID
ods.setDatabaseName(prop.getProperty("SID"));
// Set database port
ods.setPortNumber( new Integer( prop.getProperty("Port") ).intValue());
// Set the driver type
ods.setDriverType ("thin");
// Sets the user name
ods.setUser(prop.getProperty("UserName"));
// Sets the password
ods.setPassword(prop.getProperty("Password"));
Connection properties :
# Your Database Connection details
HostName = 10.20.3.19
SID = EDIREAD
Port = 1521
UserName = dbuser
Password = dbuser
Error I'm getting is
error while trying to connect with odbc datasource
[root@iflexpau2217 EDIReader]# java try2
hi
prop is {HostName=10.20.3.19, Password=dbuser, UserName=dbuser, SID=EDIREAD, Port=1521}
In exception java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
Also I tried to connect with weblogic JDBC driver
Code is here:
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.sql.Blob;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
//import com.entrust.toolkit.util.ByteArray;
public class trial{
public static void main(String args[]) throws IOException{
System.out.println("hi");
Connection p_conn = null;
PreparedStatement xml_insert = null;
try {
// Load the JDBC driver
System.out.println("hi2");
// String driverName = "oracle.jdbc.driver.OracleDriver";
String driverName = "weblogic.jdbc.oracle.OracleDriver";
System.out.println("hi2");
Class.forName(driverName);
// Create a connection to the database
String serverName = "10.20.3.19";
String portNumber = "1521";
String sid = "EDIREAD";
//String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;
String url = "jdbc:bea:oracle://10.20.3.19:1521";
String username = "dbuser";
String password = "dbuser";
System.out.println("connection is:"+p_conn+"user name is"+username+"password is"+password);
p_conn = DriverManager.getConnection(url, username, password);
System.out.println("connection is:"+p_conn+"user name is"+username+"password is"+password);
xml_insert=p_conn.prepareStatement("insert into PRTB_SUBUNIT (SUBUNT_ID,SUBUNT_SUB_UNIT,SUBUNT_PHYUNT_ID) values (?,?,?)");
//InputStream in=null;
File l_file=new File("/home/sreejith/EDIReader/propertyfiles/inputfile/BUG_10802_ES_CSB19_68.txt");
BufferedReader input =null;
input=new BufferedReader(new FileReader(l_file));
String line = null;
StringBuffer trial=new StringBuffer();
while (( line = input.readLine()) != null){
trial.append(line);
trial.append(System.getProperty("line.separator"));
//InputStream is = new BufferedInputStream(new FileInputStream(l_file));
System.out.println(trial.toString());
//Blob b ;
//byte[] bytes=trial.toString().getBytes();
//System.out.println("Size-->"+bytes.length);
xml_insert.setString(1,new String("SpecailChar"));
//xml_insert.setBinaryStream(2,new ByteArrayInputStream(bytes),15920);
xml_insert.setString(3,"SpecailChar");
xml_insert.executeUpdate();
p_conn.commit();
} catch (ClassNotFoundException e) {
System.out.println("ClassNotFoundException:"+e.getMessage());
// Could not find the database driver
} catch (SQLException e) {
System.out.println("SQEXCEPTIN:"+e.getMessage());
// Could not connect to the database
}catch (FileNotFoundException e) {
System.out.println("filenot found:"+e.getMessage());
// Could not connect to the database
Error I'm getting is
error while trying with jdbc:
SQEXCEPTIN:[BEA][Oracle JDBC Driver]Error establishing socket to host and port: 10.20.3.19:1521. Reason: Connection refusedIs the Windows firewall active? Have you enabled the port on the firewall, if it is?
Maybe you are looking for
-
Problem with NetConnection in Adobe AIR(Flex) using Flash Media Server.
Hi I am creating a small chat application using Flash Media server. I have already created all my user interface components in Flex(Adobe AIR).In this application rather than sending text messages user can also send file to another user in his frie
-
How can I type "š" with english keyboard layout?
I was wondering if somewho can tell me, how I can type "š" with englis keyboard layout, because when I have restart iMac, layout was changed back to english (from Slovak) and now I cant start Mac OS X, cause in my login is "š"
-
Changing font size for output device / spool file
hi all, i see only these below parameters for print in the code of the transaction which gets spool no and output device as input and prints it. i need to increase the font size of the print out.any help? LAYOUT = 'X_65_132' LI
-
Is Microsoft Ergonomic Keyboard 4000 compatible with Mac mini?
Hi, I am thinking of getting a Mac mini. I currently have a Microsoft Ergonomic Keyboard 4000 which I use with my HP laptop. Does anyone know if it is fully compatible with Mac mini?
-
Cycle images in a thumbnail gallery
Hi, I'm very new to HTML, so please bear with me. I'm currently using a "Thumbnail Gallery" style page for my online portfolio (when the cursor hovers over a thumbnail the image pops up to the left of it) Here's a link: Portfolio What I'm wondering i