Connecting A Dreamweaver site to a database using localhost
I have created a number of websites that connect to a databasde on localhost using the Windows\database utility built into Dreamweaver with no problems.
Recently my version of Dreamweaver started crashing and DW Support did some work to rer4solve that.
Now I cannot create a database connection to localhost and support say they are not trained to help.
Here are the steps and error message
Server Name: fhm
Connect Using: Local/Network
Server Folder: D:\FullHouseMarketing\
Web URL: http://fhm/
Server Model:PHP MYSQL
In the Database Panen there are ticks against
1) Create a site for this file
2) Choose a document type (PHP)
3) Set up the site's testing server
Fill in the form and click select database
Http Error Code 404 Filoe Not Found
1) There is no testing server running on the server machine. (There is only one machine, the server is localhost, it is running and I can access the database)
2) the testing server specified for this site does not map to the http//fhm/_mmServerScripts/MMHTTPDB.php&Type=MYSQL&ConnectionString=host=locaslhost.uics5 write.pwd=Smp URL. Verify that the URL Prefix maps to the root of the site. ( I have no idea how to do that)
Any help appreciated
mr.ztch wrote:
Are you saying there is a new way to coonect with a database? If so could you point me to the documentation.
Yes BUT you have to code it by hand.
Start here, a 9 part video tutorial:
https://www.youtube.com/watch?v=BEbKji_pSZM
Connecting to a database is in part 3.
You cannot mix up msql and mysqli so if you connect using mysqli which the video covers you need to use mysqli to query the database which is also covered in the video series. DW used mysql to connect and query.
I stopped using the DW server behaviours some time ago............best thing I ever did.
Similar Messages
-
Cannot connect from dreamweaver cs5.5 to mysql using the mysql connection wizard
Cannot connect from dreamweaver cs5.5 to mysql using the mysql connection wizard error Http error 403 or 500 internal server error. I am using ubuntu mysql.
a manual php script work fine
<?php
// open connection to mysql server
$dbc = mysql_connect('localhost','root','password');
if (!$dbc) {
die('Not Connected' . mysql_error ());
//select database
$db_selected = mysql_select_db ("msinventory",$dbc);
if (!$db_selected)
die('Cannot Connect' . mysql_error());
echo "TEST DONE1";
?>
but the database connection wizard fails with http error 403 or 500
i also use the HeidiSQL client and it works, the only problem is in dreamweaver.OK. Did you really mean to ask this question on a ColdFusion forum, if it's DreamWeaver you're having problems with? You're probably better off raising this on a DreamWeaver forum. "Using the correct tool for the job" 'n'all.
Adam -
Can't connect to specific site at certain times using DSL
Connections to http://www.battle.net are very slow and flakey at around 7-11 PM, through Verizon DSL. During this period, there are intervals of perhaps 15 minutes where connections work without problems and other periods where almost nothing gets through. This started about 1 week ago (I first noticed this issue on 1/31). This appears to be a problem somewhere between Verizon and www.battle.net (reasoning and trace routes provided below). I tried talking to Verizon support, but they insisted on more or less going through the entire DSL setup process before investigating this issue, which I didn't have patience for.
This is not a problem with my modem/router because
1) This happens to other Verizon users in the NYC area, and at almost the exact same second
2) Other sites work without issues
3) Nothing related to my setup has changed recently
This is also not a problem with that particular host, because
1) Other users in the US can access that site without problems at those same times. For example, upstate NY, Florida, Washington.
2) The Clearwire network seems to have no trouble handling connections to www.battle.net.
3) I can access web pages on www.battle.net through various web proxies.
4) Various "down or not" sites report that the site is up.
Traceroutes below. There appear to be a few different routes. Although I'm not entirely sure, it seems that periods of slow/non-working connections are associated with the second traceroute (over TeliaSonera).
Tracing route to www.battle.net [12.129.242.30]
over a maximum of 30 hops:
1 1 ms <1 ms <1 ms dslrouter.westell.com [192.168.1.1]
2 42 ms 25 ms 24 ms 10.32.64.1
3 29 ms 27 ms 27 ms P0-7-1-7.NYCMNY-LCR-22.verizon-gni.net [130.81.4
4.226]
4 28 ms 27 ms 28 ms ae0-0.NY5030-BB-RTR2.verizon-gni.net [130.81.209
.126]
5 28 ms 28 ms 28 ms 0.xe-9-1-0.BR2.NYC4.ALTER.NET [152.63.23.141]
6 72 ms 100 ms 74 ms 192.205.34.49
7 98 ms 97 ms 97 ms cr1.n54ny.ip.att.net [12.122.86.6]
8 137 ms * * cr2.cgcil.ip.att.net [12.122.1.2]
9 201 ms * 183 ms cr1.cgcil.ip.att.net [12.122.2.53]
10 99 ms * 97 ms cr2.dvmco.ip.att.net [12.122.31.85]
11 97 ms 119 ms 135 ms cr1.slkut.ip.att.net [12.122.30.25]
12 100 ms 108 ms 101 ms cr2.la2ca.ip.att.net [12.122.30.30]
13 132 ms 133 ms 133 ms gar29.la2ca.ip.att.net [12.122.129.241]
14 130 ms 132 ms * 12-122-254-238.attens.net [12.122.254.238]
15 * 132 ms * mdf001c7613r0003-gig-12-1.lax1.attens.net [12.12
9.193.254]
16 * * * Request timed out.
17 * * * Request timed out.
18 * * * Request timed out.
19 * * * Request timed out.
20 * * * Request timed out.
21 * * * Request timed out.
22 * * * Request timed out.
23 * * * Request timed out.
24 * * * Request timed out.
25 * * * Request timed out.
26 * * * Request timed out.
27 * * * Request timed out.
28 * * * Request timed out.
29 * * * Request timed out.
30 * * * Request timed out.
Trace complete.
Tracing route to www.battle.net [80.239.186.26]
over a maximum of 30 hops:
1 <1 ms <1 ms <1 ms dslrouter.westell.com [192.168.1.1]
2 25 ms 25 ms 25 ms 10.32.64.1
3 29 ms 27 ms 27 ms P0-7-1-7.NYCMNY-LCR-22.verizon-gni.net [130.81.4
4.226]
4 27 ms 27 ms 27 ms so-5-0-0-0.NY5030-BB-RTR1.verizon-gni.net [130.8
1.22.18]
5 28 ms 47 ms 28 ms 0.so-0-0-0.XT2.NYC4.ALTER.NET [152.63.17.21]
6 27 ms 27 ms 28 ms GigabitEthernet7-0-0.GW1.NYC4.ALTER.NET [152.63.
20.53]
7 29 ms 27 ms 27 ms teliasonera-test.customer.alter.net [157.130.255
.206]
8 27 ms 27 ms 27 ms nyk-bb1-link.telia.net [213.155.131.136]
9 250 ms 126 ms 127 ms prs-bb1-link.telia.net [80.91.253.121]
10 115 ms 136 ms 137 ms prs-b8-link.telia.net [213.155.131.9]
11 * * * Request timed out.
12 * * * Request timed out.
13 * * * Request timed out.
14 * * * Request timed out.
15 * * * Request timed out.
16 * * * Request timed out.
17 * * * Request timed out.
18 * * * Request timed out.
19 * * * Request timed out.
20 * * * Request timed out.
21 * * * Request timed out.
22 * * * Request timed out.
23 * * * Request timed out.
24 * * * Request timed out.
25 * * * Request timed out.
26 * * * Request timed out.
27 * * * Request timed out.
28 * * * Request timed out.
29 * * * Request timed out.
30 * * * Request timed out.
Trace complete.Well tonight after another frustrating night of being unable to connect i had no choice but to order optimum online internet service and verizon has lost a dsl customer.
After years of somewhat reliable service and above average satisfaction this is just not going to work and i cannot justify paying for bad service.
I STRONGLY recommend anyone thinking of using verizon as your ISP to reconsider and look for better options.
If it matters this the the last tracert
Tracing route to battle.net [12.129.242.30]
over a maximum of 30 hops:
1 <1 ms <1 ms <1 ms 192.168.1.1
2 24 ms 25 ms 24 ms 10.32.123.1
3 31 ms 27 ms 28 ms P0-7-1-2.NYCMNY-LCR-22.verizon-gni.net [130.81.4
5.178]
4 64 ms 74 ms 66 ms so-3-1-0-0.NY5030-BB-RTR2.verizon-gni.net [130.8
1.199.12]
5 26 ms 26 ms 27 ms 0.xe-1-1-1.BR2.NYC4.ALTER.NET [152.63.23.169]
6 89 ms 88 ms 91 ms 192.205.36.57
7 * * * Request timed out.
8 96 ms 95 ms 95 ms cr2.cgcil.ip.att.net [12.122.1.2]
9 94 ms 97 ms 95 ms cr1.cgcil.ip.att.net [12.122.2.53]
10 * 146 ms * cr2.dvmco.ip.att.net [12.122.31.85]
11 * * * Request timed out.
12 * * * Request timed out.
13 * * * Request timed out.
14 * * 267 ms 12.122.251.190
15 * * * Request timed out.
16 * * * Request timed out.
17 * * * Request timed out.
18 * * * Request timed out.
19 * * * Request timed out.
20 * * * Request timed out.
21 * * * Request timed out.
22 * * * Request timed out.
23 * * * Request timed out.
24 * * * Request timed out.
25 * * * Request timed out.
26 * * * Request timed out.
27 * * * Request timed out.
28 * * * Request timed out.
29 * * * Request timed out.
30 * * * Request timed out.
Trace complete. -
Connect to a remote MS Access database using RmiJdbc
Hello,
I want to access a remote MS Access database from oracle stored procedures.
Does anyone know how i can load the RmiJdbc driver using the loadjava command or with any other way.
Because when i try to load RmiJdbc.zip using the loadjava command I am getting the error:
ORA-29533:attempt to overwrite class or resource string while defining or compiling scott.TestClient
this error is occured for multiple files...
I don't know how to delete this classes.
Because this error occured and the first time i tried to load Rmijdbc driver.
and when i use the dropjava command to drop it,and then load it again the same error occures.
Can anyone help me how to load this driver?
Please answer because i need it as soon as possible.
ThanksHi,
try this.
String s = "UPDATE AGENT SET afname='test',alname='u',city='d',AGENT.[percent]=1 WHERE aid=23";
-------->AGENT.[percent] -
How to connect Oracle 7.x database using weblogic 11g
Hi,
For one of my requirement, I need to connect to a Oracle 7.x database using weblogic 11g Application server.
Any idea?Tried as per the suggestion from the link :
http://jvzoggel.wordpress.com/2011/07/26/weblogic-ojdbc-driver/
It worked. -
Code for connecting to a Microsoft SQL server database
Hi
What is the code for connection to a Microsoft SQL server database using JSP? I know the structure of the code but i do not know the driver name. Any importing required besides java.sql?
ThanksBack up there. JSP's should never contain any
database code. You should write a bean to handle
database transactions and call that from your JSP.I agree wholeheartedly with that.
Why didn't you consult google to help you with your
problem? The answer is on the MS website.
http://support.microsoft.com/default.aspx?scid=kb;en-u
s;313100This is correct, too. Isn't Google installed on your machine?
% -
Is is possible to connect Netbean IDE to Oracle XE database.
Is is possible to connect Netbean IDE to Oracle XE database using network drivers provided with Netbean.
I m giving following input parameter to Netbean.
Data Input Mode : Field Entry
Driver Name: JAVA DB(Network)
Host:lightweight-ovm
Port:1521
Database:XE
Username:lightweight
Password:xxxxx
When tried connecting the Oracle XE using netbean i have got following error.
ubable to add connection. cannot establish a connection to jdbc:derby://lightweight-ovm:1521/XE
using org.apache.derby.jdbc.ClientDriver(Insufficient data while reading from network - expected a minimum
of 6 byes and received only -1 byrtes. the connection has been terminated.
However i can able to establish connection in jsp pages using following connection string.
Class.forName ("oracle.jdbc.driver.OracleDriver");
conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE", "lightweight", "oracle");
What is wrong here?Please post this in
Database Connectivity - Java Database Connectivity (JDBC) Forums ..
http://forums.sun.com/forum.jspa?forumID=48&start=0
Regards
Rajesh -
Connecting to Remote Database using Debian w/Oracle XE
Hello.
I have managed to install Oracle XE on a Debian box.
I am trying to connect to a remote server located on my network.
I am using the following connection string:
# sqlplus <User>/<Password>@'(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<IP>)(PORT=1521)))(CONNECT_DATA=(SID=<SID>)))'
However, I was given both a SID and a Service_name.
I tried connecting with both.
Is it possible to parametrize both? I checked and the remote server is up, and that is the existing port.
Thanks a lot!user603592 wrote:
Hello.
I have managed to install Oracle XE on a Debian box.
I am trying to connect to a remote server located on my network.
I am using the following connection string:
# sqlplus <User>/<Password>@'(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<IP>)(PORT=1521)))(CONNECT_DATA=(SID=<SID>)))'
However, I was given both a SID and a Service_name.
I tried connecting with both.
Is it possible to parametrize both? yes, see below
bcm@bcm-laptop:~$ sqlplus -h
SQL*Plus: Release 11.2.0.1.0 Production
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Use SQL*Plus to execute SQL, PL/SQL and SQL*Plus statements.
Usage 1: sqlplus -H | -V
-H Displays the SQL*Plus version and the
usage help.
-V Displays the SQL*Plus version.
Usage 2: sqlplus [ [<option>] [{logon | /nolog}] [<start>] ]
<option> is: [-C <version>] [-L] [-M "<options>"] [-R <level>] [-S]
-C <version> Sets the compatibility of affected commands to the
version specified by <version>. The version has
the form "x.y[.z]". For example, -C 10.2.0
-L Attempts to log on just once, instead of
reprompting on error.
-M "<options>" Sets automatic HTML markup of output. The options
have the form:
HTML [ON|OFF] [HEAD text] [BODY text] [TABLE text]
[ENTMAP {ON|OFF}] [SPOOL {ON|OFF}] [PRE[FORMAT] {ON|OFF}]
-R <level> Sets restricted mode to disable SQL*Plus commands
that interact with the file system. The level can
be 1, 2 or 3. The most restrictive is -R 3 which
disables all user commands interacting with the
file system.
-S Sets silent mode which suppresses the display of
the SQL*Plus banner, prompts, and echoing of
commands.
<logon> is: {<username>[/<password>][@<connect_identifier>] | / }
[AS {SYSDBA | SYSOPER | SYSASM}] [EDITION=value]
Specifies the database account username, password and connect
identifier for the database connection. Without a connect
identifier, SQL*Plus connects to the default database.
The AS SYSDBA, AS SYSOPER and AS SYSASM options are database
administration privileges.
<connect_identifier> can be in the form of Net Service Name
or Easy Connect.
@[<net_service_name> | [//]Host[:Port]/<service_name>]
<net_service_name> is a simple name for a service that resolves
to a connect descriptor.
Example: Connect to database using Net Service Name and the
database net service name is ORCL.
sqlplus myusername/mypassword@ORCL
Host specifies the host name or IP address of the database
server computer.
Port specifies the listening port on the database server.
<service_name> specifies the service name of the database you
want to access.
Example: Connect to database using Easy Connect and the
Service name is ORCL.
sqlplus myusername/mypassword@Host/ORCL
The /NOLOG option starts SQL*Plus without connecting to a
database.
The EDITION specifies the value for Session Edition.
<start> is: @<URL>|<filename>[.<ext>] [<parameter> ...]
Runs the specified SQL*Plus script from a web server (URL) or the
local file system (filename.ext) with specified parameters that
will be assigned to substitution variables in the script.
When SQL*Plus starts, and after CONNECT commands, the site profile
(e.g. $ORACLE_HOME/sqlplus/admin/glogin.sql) and the user profile
(e.g. login.sql in the working directory) are run. The files may
contain SQL*Plus commands.
Refer to the SQL*Plus User's Guide and Reference for more information.
bcm@bcm-laptop:~$ -
Can't Connect to the Mysql Database using J2SE jdk1.5
Can anyone tell me why this error occurs ????????????????????
Following are the codes ;
package dbconnect2;
import java.sql.*;
public class dbconn2 {
public static final String URL =
"jdbc:mysql://localhost:3306/test";
public static final String USERNAME = "test";
public static final String PASSWORD = "password";
* @param args the command line arguments
public static void main(String[] args) throws Exception {
// TODO code application logic here
Connection connection = null;
try {
Class.forName("com.mysql.jdbc.Driver");
connection = DriverManager.getConnection(URL,
USERNAME, PASSWORD);
Statement stm = connection.createStatement();
ResultSet rs = stm.executeQuery("select * from emp");
while (rs.next())
String strnaam = rs.getString("emp_name");
System.out.println(strnaam);
finally {
if (connection != null)
connection.close();
================================================================================
This is the run time error ;
init:
deps-jar:
compile:
run:
Exception in thread "main" java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at dbconnect2.dbconn2.main(dbconn2.java:39)
Java Result: 1
BUILD SUCCESSFUL (total time: 2 seconds)
please help me to sort this out
Thanks
SishaniI've solved the DW problem by changing the site folders from
'db' to 'wwwroot' e.g. 'C:\CFusionMX\db\' is now
'C:\CFusionMX\wwwroot\
However I'm now back to my original problem. I've lost my
mqysql connection in CF Adminstrator. Before I made these changes I
could connect to my mysql databases using the following settings:
JDBC URL: jdbc:mysql://localhost:3306/test
Driver Name: MySQL Connector J
using the following Java path and file:
C:\CFusionMX\wwwroot\WEB-INF\lib\mysql-connector-java-3.0.17-ga-bin.jar
Now these settings give me the following error:
"Connection verification failed for data source: javaserver
[]java.sql.SQLException: SQLException occurred in JDBCPool
while attempting to connect, please check your username, password,
URL, and other connectivity info.
The root cause was that: java.sql.SQLException: SQLException
occurred in JDBCPool while attempting to connect, please check your
username, password, URL, and other connectivity info"
Any suggestions on this would also be welcome.
Thanks again to everyone for their help.
Sincerely,
Graham A. Kerby -
Connect to APEX database using VBA+ADO code in Microsoft Excel & Word?
I am looking at APEX as a potential replacement for a growing reporting/analysis system. As yet I have not found a clear answer on an important question.
The current system is a shared database and a collection of Microsoft Excel and Word templates. Each template contains underlying VBA code that establishes a direct connection to the database via OLE DB (i.e. ADODB objects in VBA via the OLE DB Provider for JET).
Each template’s underlying VBA code executes stored procedures or queries as required, the results of which are returned as Recordset objects and rendered to the Excel worksheet or Word document. Similarly, in some cases, data entered into an Excel worksheet by a user can be submitted back to the database at the click of a button, again via Recordset objects.
Now most of our templates could easily be ported to APEX. However, there is a strong preference that some of our templates continue to exist and maintain current functionality. So we have a requirement that Excel and Word can seamlessly and directly interact with an APEX database.
Long question short – is there a way to establish a connection and retrieve/insert data from an APEX database using OLE DB (ADODB) in VBA, as described above? I understand that APEX sits ‘on top’ of a real Oracle database, and I know Oracle provides an OLE DB Provider (OraOLEDB) for Oracle databases. Would OraOLEDB do the trick, or is it not as simple as that?
Many thanks for your insights on this,
MichalThe current system is a shared database and a collection of Microsoft Excel and Word templates. Each template contains underlying VBA code that establishes a direct connection to the database via OLE DB (i.e. ADODB objects in VBA via the OLE DB Provider for JET).
Long question short – is there a way to establish a connection and retrieve/insert data from an APEX database using OLE DB (ADODB) in VBA, as described above? I understand that APEX sits ‘on top’ of a real Oracle database, and I know Oracle provides an OLE DB Provider (OraOLEDB) for Oracle databases. Would OraOLEDB do the trick, or is it not as simple as that?Hi,
Apex gets installed as a separate schema in an existing database.
So it will not in any way interfere with your existing setup. You can continue to connect directly to the database from your spreadsheets, call stored procedures from VBA/ADO, etc.
- Morten
http://ora-00001.blogspot.com -
How to Connect Microsoft SQL 2000 database using JDBC
Hi all..
I want to connect Microsoft SQL 2000 database using JDBC. I want from initial steps also. (about JDBC driver & its installation)
ThankzJust checkout the SQL Server JDBC Driver Documentation at the manfacturer's site: http://msdn2.microsoft.com/en-us/data/aa937724.aspx
-
Linux non-oracle user cannot connect to database using TNS
LS,
I've installed Oracle 11gR2 on a linux box (name="ilmserver") running CentOS 5.4 (based on RHEL).
Created user "oracle" and groups "oinstall" and "dba".
Installation under user "oracle" went fine, and logged in as "oracle" user I can - naturally - access the database easily (via SQL+, or using SQL Developer it works via Basic, TNS, and Advanced (=jdbc)).
I have a second user on the linux box called "informatica", on which I have installed Informatica ILM 5.3.2, which uses the Oracle database as its repository.
The "informatica" user has been granted the same groups as the "oracle" user, i.e. "oinstall" and "dba".
I have severe problems accessing the Oracle database as the "informatica" user.
Using SQL Developer I can access the database using the "Basic" method, but not TNS.
But guess what: for ILM to work to its fullest extent I need to implement an environment variable called TNS_ADMIN.
I have implemented it, it sits in bash_profile and as such works fine:
+[informatica@ilmserver ~]$ echo $TNS_ADMIN+
+/home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin+
But as for being able to access it:
+[informatica@ilmserver ~]$ cat $TNS_ADMIN/tnsnames.ora+
cat: /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora: Permission denied
Somehow I thought that granting "oinstall" group to "informatica" user would take care of this. Obviously it doesn't. I also granted "dba" group to "informatica", to no avail apparently.
This is then - I assume - also the reason that when I want to connect using TNS from within SQL Developer, the dropdown list is empty (because it's not able to read TNSNAMES.ORA).
Does anyone know how to resolve this issue?
Thanks heaps!
Cheers, PatrickJust ran all+ commands for oracle user:
*[oracle@ilmserver ~]$ id*
uid=502(oracle) gid=504(oinstall) groups=503(dba),504(oinstall),505(asmdba),506(asmadmin) context=user_u:system_r:unconfined_t
*[oracle@ilmserver ~]$ env | sort*
COLORTERM=gnome-terminal
CVS_RSH=ssh
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-m8BEsoxTeM,guid=7c9a73a7390af7742e606e004e571934
DESKTOP_SESSION=default
DESKTOP_STARTUP_ID=
DISPLAY=:0.0
G_BROKEN_FILENAMES=1
GDMSESSION=default
GDM_XSERVER_LOCATION=local
GNOME_DESKTOP_SESSION_ID=Default
GNOME_KEYRING_SOCKET=/tmp/keyring-TQlAPU/socket
GTK_RC_FILES=/etc/gtk/gtkrc:/home/oracle/.gtkrc-1.2-gnome2
HISTSIZE=1000
HOME=/home/oracle
HOSTNAME=ilmserver
INPUTRC=/etc/inputrc
JAVA_HOME=/usr/java/jdk1.7.0
LANG=en_US.UTF-8
LESSOPEN=|/usr/bin/lesspipe.sh %s
LOGNAME=oracle
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
MAIL=/var/spool/mail/oracle
ORACLE_BASE=/home/oracle/app/oracle
ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1
ORACLE_HOSTNAME=ilmserver
ORACLE_SID=orcl
PATH=/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/oracle/bin:/usr/java/jdk1.7.0/bin:/usr/sbin:/sbin:/home/oracle/app/oracle/product/11.2.0/dbhome_1/bin
PWD=/home/oracle
SESSION_MANAGER=local/ilmserver:/tmp/.ICE-unix/14477
SHELL=/bin/bash
SHLVL=2
SSH_AGENT_PID=14513
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SSH_AUTH_SOCK=/tmp/ssh-INwup14477/agent.14477
TERM=xterm
TNS_ADMIN=/home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin
USERNAME=oracle
USER=oracle
_=/usr/bin/env
WINDOWID=24117329
XAUTHORITY=/tmp/.gdm9ITN0V
XMODIFIERS=@im=none
*[oracle@ilmserver ~]$ ls -l /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora*
-rw-r----- 1 oracle oinstall 879 Aug 24 21:39 /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
*[oracle@ilmserver ~]$ ls -ld /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/*
drwxr-xr-x 3 oracle oinstall 4096 Aug 24 21:39 /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/
*[oracle@ilmserver ~]$ ls -ld /home/oracle/app/oracle/product/11.2.0/dbhome_1/*
drwxr-xr-x 74 oracle oinstall 4096 Aug 23 19:00 /home/oracle/app/oracle/product/11.2.0/dbhome_1/
*[oracle@ilmserver ~]$ ls -ld /home/oracle/app/oracle/product/11.2.0/*
drwxr-xr-x 3 oracle oinstall 4096 Aug 23 18:21 /home/oracle/app/oracle/product/11.2.0/
[*oracle@ilmserver ~]$ ls -ld /home/oracle/app/oracle/product/*
drwxr-xr-x 3 oracle oinstall 4096 Aug 23 18:21 /home/oracle/app/oracle/product/
*[oracle@ilmserver ~]$ ls -ld /home/oracle/app/oracle/*
drwxr-xr-x 10 oracle oinstall 4096 Aug 24 17:29 /home/oracle/app/oracle/
*[oracle@ilmserver ~]$ ls -ld /home/oracle/app/*
drwxr-xr-x 4 oracle oinstall 4096 Aug 23 18:21 /home/oracle/app/
*[oracle@ilmserver ~]$ ls -ld /home/oracle/*
drwx------ 22 oracle oinstall 4096 Aug 25 20:55 /home/oracle/
Naturally the "oracle" user has full access to its own directories.
A thought just occurred to me. I assume that theoretically it's possible to grant read privilige to informatica user on all these directories... would that do the trick?
But even if so, makes me wonder whether that is "best practice".
Also, I cannot imagine I'm the first person to encounter this scenario, and therefore there must be some standard approach to enable this.
Any suggestions/thoughts?
As for the TNSNAMES.ORA suggestion, I guess that is possible. Makes administration of TNSNAMES a bit more cumbersome though, as in, 2 files to maintain... risk of getting out of sync when making 'quick and dirty' changes without thinking things through too much (which shouldn't happen... but sometimes does anyway).
I'd prefer a solution where "informatica" has genuine access to TNSNAMES.ORA.
Thanks, Patrick
ps the bold bits with env.var LS_COLORS are unintentional, but don't know how to turn that off -
Unable to connect to Oracle Database using Oracle Sql developer 2.1.1.64
Hi Everyone,
I am searching for some help regarding my problem with Oracle connectivity. I have installed Oracle 11g release 2 on my Windows XP Professional Laptop. For a few days after installation i could connect to the Oracle database with the SYSTEM account using Oracle SQL developer ( installed on the same Laptop) but now i am unable to do so.It gives me this annoying message:
An error was encountered performing the required operation Got a minus one from read call .Vendor code 0
However i am able to connect using Sql Plus by supplying the username SYSTEM and the corresponding password.
My TNSNAMES .ora file is as follows:
ORACLE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST =localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORACLE)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
My Listener.ora file is as follows:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = D:\app\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:D:\app\product\11.2.0\dbhome_1\bin\oraclr11.dll")
(SID_DESC =
(GLOBAL_DBNAME = Oracle)
(ORACLE_HOME = D:\app\product\11.2.0\dbhome_1)
(SID_NAME = Oracle)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(PROTOCOL_STACK =
(PRESENTATION = GIOP)
(SESSION = RAW)
ADR_BASE_LISTENER = D:\app
My Sqlnet.ora file is as follows:
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
I am new to Oracle and so i need someone in this forum who can help me resolve this problem. Also i even tried connecting to the database using Toad 10.5.0.41. It give me the following error:
ORA 12537 : TNS Connection closed
Thanks for your patience and help in advance.
---PrashantHello Irian and Sue,
I can connect to the Oracle database using SQL Plus. Now when i TNSPING ORACLE from command line i get the following message :
Used parameter files:
D:\app\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =localhost
*)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ORACLE)))*
TNS-12537: TNS:connection closed
Thanks for your response to my initial post.Do u have any other methods to resolve this? -
How can I connect to the database using ODBC within excel.
Hi,
How can I connect to the database using ODBC within excel and just refresh the data when needed.
Thanks,
Priyanka
Edited by: user554934 on Jun 9, 2009 2:53 AMThis is NOT an APEX relevant question, try posting it in the SQL/PL/SQL Forum..
Thank you,
Tony Miller
Webster, TX -
Can't connect to SQL Database using new login
I can connect to Azure SQL Database using the admin ID created when I set up the Azure account. Now I want to set up a different login that has only regular read/write privileges. I have followed the instructions on several web posts, to create
a login at the server level, then create a user at the database level from the login. When I try to connect, though, the connection fails. I get an error message, and a GUID that I am supposed to supply to MS tech support, except that all I have
is a standard Azure subscription, which does not include tech support.
Here is what I have done so far:
Logging in to the server with the admin account with SQL Mgmt Studio, I go to the master database on my Azure server, and create the login:
CREATE LOGIN clouduser@gxw8x04nlb with PASSWORD = 'xoxoxoxo';
This appears to work (password supplied is a "strong" password), or at least it doesn't show any error response.
Then, connecting to the production database in Azure, I set up a user and set permissions as follow:
CREATE USER clouduser1 FROM LOGIN clouduser@gxw8x04nlb;
EXEC sp_addrolemember 'db_datareader', 'clouduser1'
EXEC sp_addrolemember 'db_datawriter', 'clouduser1'
When I attempt to connect to Azure using the new login, however, I get an error message (from SQL Mgmt Studio as well as from MS Access). I am using the SQL Server Native Client 10.0.
The message is:
Connection failed:
SQLState '28000'
SQL Server Error 18456
[Microsoft][SQL Server Native Client 10.0][SQL Server]Login failed for user 'clouduser'.
Connection failed:
SQLState: '01000'
SQL Server Error: 40608
[Microsoft][SQL Server Native Client 10.0][SQL Server]This session has been assigned a tracing ID of
'271851d5-8e94-497c-a332-d9d40682bb7a'. Provide this tracing ID to customer support when you need assistance.
Is there some missing step I need to do, to permit the login to see the database? I have looked for such in the various discussions about connection problems, but have not been able to find such a thing. Or extend more permissions to the new
user? Or specify a default user ID for a given login ? (as they do not have the same names, in the examples I have seen). I tried making the user ID the same as the login (w/o the server name), but that didn't seem to help, either.
I have done numerous web searches, and tried about every variation of login or user ID, password, etc. that I can think of, and all of them encounter the same error. It's got to be something very simple - clearly Azure supports more than one login
per database. But's that's all I have at the moment. That login connects just fine, but others won't, using the same PC, middleware, IP address, etc.
Any help would be much appreciated -
Thanks,
DougOlaf -
I noticed that, but all of the examples I have seen have Users named slightly differently from the Logins. I did try logging in with the Login name instead. No good. I tried making the Login and the User name the same (clouduser). Also
no good - same symptoms.
I think the problem is that the initial creation of the Login needs to be done WITHOUT the server name on the end.
Logged in to the master DB, I tried: Create LOGIN clouduser@gxw8x04nlb with PASSWORD = 'xoxoxoxo';
That didn't give me an error message, but I think it created a LOGIN of 'clouduser@gxw8x04nlb'. When
referenced from the outside world, I would need to specify 'clouduser@gxw8x04nlb@gxw8x04nlb'.
I tried deleting the logins, and then creating the login 'clouduser' in the Master DB. Then in
the application DB, I created User clouduser from LOGIN clouduser, and then assigned a role. That seems to work!
In my connection string, File DSN, etc. I still need to supply the login as 'clouduser@gxw8x04nlb'.
But when I am logged in to the server, and working in the Master DB or the application DB, I just refer to the Login as 'clouduser'.
Seems a little more complicated than it really should be, but at least I now have something that works.
Doug
Doug Hudson
Maybe you are looking for
-
Hello. I have a flash slide on my site. The slide has next and previous buttons to either move to the next slide or the previous slide. Each slide is only an image. When you click a particular image it takes you to the page specific to the image you
-
Find next, previous, first or last occurrence in a pdf.
Sorry if this has been asked before, but I did not find answers to my problem. I am fairly new to OS/X having a long Ubuntu and Windows history. I extensively use preview to read pdf's. But how do I search for a specific word or phrase, and get to se
-
Low frequency measurement (1 to 5 Hz) issues - Reg
Hello All, i am facing a problem in measuring Low-Frequencies in the range of 1-5 Hz. I am using VIs used for pulse-width measurement and the card is PCI-6031E. i am generating frequency using PCI-6013 card. Actually i am trying to develop an applica
-
Javascript not working in Mid-2010 Macbook Pro
Javascript says it's enabled in my browsers (Firefox, Chrome, Safari), when I go to a website that tells you if your javascript is enabled or not, it says it's enabled, but it doesn't work when I go to a website that uses it. How do I fix this issue?
-
How do I recover my passwords that were lost during instalation of firefox?
most of my passwords were lost after I installed firefox...what do I do?