Manipulating sql database on a remote host iphone
well i want to manipulate an sql database on a remote host. The database will have an id and a value. I want to add my id and my value using my iphone and read some id's from the database could you tell me if i can do that on iphone and what tools will i need (like sql lite or what).
Sorry for my bad english.
PostgreSQL is a popular open source database which has ported their C client library to iOS. I am not aware of the MySQL client library having been ported to iOS, but that is something you can research. An intermediary web service would be something you write (PHP, Groovy, .NET, etc) that would handle requests from the iOS apps and respond with responses are appropriate after executing the SQL statements after proper validation and error checking of input statements. You can send data in JSON or any easy to use format.
Similar Messages
-
Error accessing mysql database from a remote host
Hi all,
I'm running the following PL/SQL script and encountered some errors. The MySQL server is hosted off campus by a hosting company. However, when I run the same script against a MySQL database server hosted on campus, the script works fine. Here's the error:
ERROR at line 3:
ORA-04052: error occurred when looking up remote object
cmswhit_odbc13.mdl_user@RLTEST
ORA-00604: error occurred at recursive SQL level 1
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[MySQL][ODBC 5.1 Driver][mysqld-4.1.22-standard]SELECT command denied to user
'cmswhit_odbc13'@'192.160.216.13' for table 'mdl_user'
ORA-02063: preceding 2 lines from RLTEST
Here's the script:
sqlplus -s <<endofit
$USERPASS
set serveroutput on;
DECLARE
user_name varchar2(30);
moo_user_name varchar2(300);
routine VARCHAR2(40);
cntr NUMBER(8);
CURSOR read_saradap is
select gobtpac_external_user
from gobtpac
where gobtpac_external_user in ('greenup','yfeng');
CURSOR read_mdl_user is
select "username" from "mdl_user"@rltest where "username" = user_name;
-- E N D O F C U R S O R S --
BEGIN
dbms_output.enable(1000000000);
-- STEP 1: Read through Banner
cntr := 0;
OPEN read_saradap;
LOOP
routine := 'Read applicant';
-- Read an applicant record
dbms_output.put_line('Reading Banner user');
FETCH read_saradap INTO user_name;
EXIT WHEN read_saradap%NOTFOUND;
dbms_output.put_line('Read Banner username=' || user_name);
cntr := cntr + 1;
-- Read the Moodle user;
routine := 'Read moodle user';
OPEN read_mdl_user;
FETCH read_mdl_user INTO moo_user_name;
IF read_mdl_user%NOTFOUND THEN
dbms_output.put_line('Moodle user not found');
ELSE
dbms_output.put_line('Read Moodle username=' || moo_user_name);
END IF;
CLOSE read_mdl_user;
END LOOP;
rollback;
CLOSE read_saradap;
dbms_output.put_line('Total processed: ' || cntr);
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line(SQLCODE);
dbms_output.put_line(SQLERRM);
dbms_output.put_line('Error user=' || user_name);
dbms_output.put_line(routine);
END;
EXIT;
endofitThe error seems to be quite clear: the user 'cmswhit_odbc13'@'192.160.216.13' lacks the SELECT privilege on the 'mdl_user' table...
Max
http://oracleitalia.wordpress.com -
Hi All,
I am using SUN ONE Webserver 6 on AIX with Oracle 8i. Every now and then I get this error
java.sql.SQLException: Io exception: A remote host did not respond within the timeout period.
I am not able to unterstand this. Some one please help...
ThanksAre you able to connect to the database server from the same machine where you are running SJS Web Server using JDBC?
Are the driver and the Database using compatible drivers?
Does it normally work? Is the error accompanied by other symptoms like application failure or unusually slow responses? -
Upload the sql database to host and manage it
hello
i have window 8.1
sql server express 2014
visual studio 2013 express
i have built a database and i am ready to copy it to the host.
not in vs or in sql.s i have found the.. connect to remote server..
i have looked on google >> its say use the
SQL Server Configuration Manager that is under the Client Tools Connectivity installation..
or search your pc for "SQLServerManager11.msc"
but i got none!!!
not the SQLServerManager11.msc
not
the Client Tools Connectivity
not the SQL Server
Configuration Manager
and i dont know how to upload the sql database to the host and manage it...thank you for replying
my installation where sql server express with advanced tools..
i have to say that the normal installation didnt work for me.. using the my_downloader_installer.exe, the akamia NetSession interface run into some error - file use by another process... and restarting the pc didnt solve the issue...
i found an alternative way to install
on http://www.microsoft.com/en-in/download/details.aspx?id=42299
and download the SQLEXPRADV_x86_ENU.exe that supposed to
be with the tools
(but could not found the tools).. so i have tried to install the SQLManagementStudio_x86_ENU.exe
>> only the tools...
but i got that error
TITLE: SQL Server 2014 Setup
There are validation errors on this page. Click OK to close this dialog box. Review errors at the bottom of the setup page, then provide valid parameters or click Help for more information.
BUTTONS:
OK
and the information page lide me to no where.. >> so general info about different installation packages..
but:
i do think i do have that SQL Server Configuration Manager
cause when i run the
USE master;
GO
EXEC sp_helpserver ;
USE master;
EXEC sp_serveroption 'Y-PC\SQLEXPRESS', 'collation compatible', 'true';
i got
name network_name status id collation_name connect_timeout query_timeout
Y-PC\SQLEXPRESS Y-PC\SQLEXPRESS rpc,rpc out,collation compatible,use remote collation 0 NULL
0 0 -
Duplicate Target database to clone_db to remote host with diff dir struct
Hi,
Below are the steps i m trying to duplicate prod2 database to test1 db in remote host with different directory structure.
Task 1: Create an Oracle Password File for the Auxiliary Instance(test1)
orapwd file=/u01/app/oracle/product/10.2.0/db_1/dbs/orapwtest1 password=sys entries=10Task 2: Establish Oracle Net Connectivity to the Auxiliary Instance
# Added to the listener.ora SID_LIST
(SID_DESC =
(GLOBAL_DBNAME = test1)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
(SID_NAME = test1)
# Added to the tnsnames.ora
TEST1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.10)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = test1)
lsnrctl reloadIn Prod2 Server:
Task 3: Create an Initialization Parameter File for the Auxiliary Instance
cp initprod2.ora inittest1.ora
Make changes for db_name,db_file_name_convert and log_file_name_convert
vi inittest1.ora
1 *.audit_file_dest='/u01/app/oracle/product/10.2.0/admin/test1/adump'
2 *.background_dump_dest='/u01/app/oracle/product/10.2.0/admin/test1/bdump'
3 *.compatible='10.2.0.1.0'
4 *.control_files='/u01/app/oracle/product/10.2.0/oradata/test1/control01.ctl',
5 '/u01/app/oracle/product/10.2.0/oradata/test1/control02.ctl','/u01/app/oracle/product/10.2.0/oradata/test1/control03.ctl'
6 *.core_dump_dest='/u01/app/oracle/product/10.2.0/admin/test1/cdump'
7 *.db_block_size=8192
8 *.db_domain=''
9 *.db_file_multiblock_read_count=16
10 *.db_name='test1'
11 *.dispatchers='(PROTOCOL=TCP) (SERVICE=indiaXDB)'
12 *.job_queue_processes=10
13 *.log_archive_dest_1='LOCATION=/u01/app/oracle/product/10.2.0/archive/test1'
14 *.log_archive_format='%t_%s_%r.dbf'
15 *.open_cursors=300
16 *.pga_aggregate_target=200278016
17 *.processes=150
18 *.remote_login_passwordfile='EXCLUSIVE'
19 *.sga_target=601882624
20 *.undo_management='AUTO'
21 *.undo_tablespace='UNDOTBS'
22 *.user_dump_dest='/u01/app/oracle/product/10.2.0/admin/test1/udump'
23 *.db_recovery_file_dest='/u01/app/oracle/product/10.2.0/backup/test1'
24 *.db_recovery_file_dest_size=2147483648
25 *.db_file_name_convert= (/u01/app/oracle/oradata/prod2/,/u01/app/oracle/product/10.2.0/oradata/test1/)
26 *.log_file_name_convert= (/u01/app/oracle/oradata/prod2/,/u01/app/oracle/product/10.2.0/oradata/test1/)Task 4: Take RMAN Backup
RMAN Target /
RMAN> startup mount
RMAN>run{
allocate channel ch1 device type disk ;
backup database noexclude format '/u01/app/oracle/product/10.2.0/backup/prod2/%D_RMAN_BACKUP_%U.bak';
RMAN> exitTransfer the backupset to test1 server to location : /u01/app/oracle/product/10.2.0/backup/test1
Transfer the pfile inittest1.ora to test1 to location : /u01/app/oracle/product/10.2.0/db_1/dbs
In test1 Server:
export ORACLE_SID=test1
SQL> CONNECT AUXILIARY sys/sys@test1;
SQL>startup force nomount pfile='/u01/app/oracle/product/10.2.0/db_1/dbs/inittest1.ora';
RMAN> TARGET sys/password@prod2 NOCATALOG AUXILIARY /
RMAN> catalog start with '/u01/app/oracle/product/10.2.0/backup/test1';
RMAN> DUPLICATE TARGET DATABASE TO test1 nofilenamecheck;Can anyone please tell me
1)Which server i need to do task2 ?
2) Since i have transfered the RMAN datafile backupset to test1 server location , So it is fine to run DUPLICATE TARGET DATABASE TO test1 from test1 server i.e. auxiliary ?
Edited by: 913410 on 21 Feb, 2012 9:16 AM
Edited by: 913410 on 21 Feb, 2012 9:20 AMOK
On the new server use
NOFILENAMECHECK - to avoid an error message.
Then in the RMAN script rename like this :
RUN
SET NEWNAME FOR DATAFILE 1 TO /oracle/data/file2.f; # rename df 1 as file2.f
SET NEWNAME FOR DATAFILE 2 TO /oracle/data/file1.f; # rename df 2 as file1.f
DUPLICATE TARGET DATABASE TO newdb;
} Check "Using RMAN DUPLICATE With SET NEWNAME: Example" in the same document for more examples.
I add entries to both the Listener and the tnsnames.
I have an example of this part only here : ( By that I mean just the listener and tnsname )
http://www.visi.com/~mseberg/standby_creation_from_active_database_using_rman.html
The document above is for Standby ( Data Guard ), however if you change the RMAN script on the new host for your purpose its very similar.
The INIT files shown have a few spaces near bottom to separate out the extra parameters for Data Guard.
I have not had great luck with the file rename so my directory structure is the same.
Best Regards
mseberg
Edited by: mseberg on Feb 21, 2012 12:10 PM -
I need to host a website with a SQL database - Azure pricing details are too confusing
Hello,
I need to give a potential client a hosting price for a somewhat simple web application they want me to build. I told them it shouldn't be a problem. After gathering the requirements, I figured I would use the following technology to build and host
it:
ASP.NET 4.5
MVC 5
1 SQL Database ~ 25GB with options to expand and also with a backup
SSL certificate needed
Hosting would be on Azure because I have some experience using Visual Studio 2012 and integrating the Visual Studio Online (TFS) source code and scrum web applications. I've never actually spun up a website with a SQL database using Azure before, but I
imagined it wasn't too difficult to find a general hosting plan to support the above requirements.
The use of the website will be very simple and limited to the basic CRUD operations. Will support forms authentication using the Identity 2.0 framework. The web applications main purpose is to fill out a form for new accounts, have a search page for
those accounts, a page to view a created account and add notes to it. So performance wise, it isn't asking for much. I just want it to be fast and secure.
So I start looking on the Azure's pricing landing page which is here: (can't put links in here, but search Azure pricing on Bing) and I see this Pricing Calculator, so I click it
First thing I notice is the Websites tab doesn't mention SQL Database - in fact the Data Management is a separate tab from Websites. And if I made my selections on the Websites tab, the estimated monthly price doesn't stay the same when I go to the Data
Management tab - so I get the illusion I have to have two separate purchases.
I'm not exactly sure if the Pay as You Go billing feature would be okay because it's just a bit scary to leave every monthly payment up to chance; somewhat. Would love to know if there is other payment options that I could see for what I described above.
I want to use Azure to host my asp.net website - it makes sense and the integration with Visual Studio is amazing. I love the publish feature for both MVC 5 Projects and SQL Database Projects.
Thanks in advance for the help!Hello jdevanderson,
I suggest that you start by looking at the pricing TIERS for the Azure website. This link will give you clarity on different Service TIERS that are availaible:
http://azure.microsoft.com/en-in/pricing/details/websites/
You can guage your requirement and choose the Service TIER accordingly.
And regarding the database, you are right about it. You will be charged seperately for the database. You can refer to this link that will give you clarity on SQL database pricing:
http://azure.microsoft.com/en-in/pricing/details/sql-database/
Refer to this link for more information on 'How pricing works':
http://azure.microsoft.com/en-in/pricing/
Use the full calculator to add your website and the database to get an estimated cost:
http://azure.microsoft.com/en-in/pricing/calculator/?scenario=full
Thanks,
Syed Irfan Hussain -
Applet connecting to MS SQL Database (Remote DataSourse)
Hello,
I started by building my interface to a Database within an Application. I am not to the point where I am ready to make it an applet but want to get some tips when the time comes very soon.
First of all what security issues do I have to deal with to let the applet connect to the database?
Second I currently created a local Datasource via ODBC call JavaDB and linked it to my MS SQL Database.
QUESTION
How do I link to the with a remote Datasource so that the local machine does not have to worry about the datasource.
Lastly can I use the "sun.jdbc.odbc.JdbcOdbcDriver" in an applet. I sure hope so...
Then the part of my code that connected to the database was this:
private void initDB(){
String url = "jdbc:ODBC:JavaDB";
Connection con;
String query = "select * from COFFEES";
Statement stmt;
try {
//Class.forName("myDriver.ClassName");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
} catch(java.lang.ClassNotFoundException e) {
System.err.print("ClassNotFoundException: ");
System.err.println(e.getMessage());
try {
con = DriverManager.getConnection(url, DBADM, DBPWD);
stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(query);
ResultSetMetaData rsmd = rs.getMetaData();
System.out.println("");
int numberOfColumns = rsmd.getColumnCount();
for (int i = 1; i <= numberOfColumns; i++) {
if (i > 1) System.out.print(", ");
String columnName = rsmd.getColumnName(i);
System.out.print(columnName);
System.out.println("");
while (rs.next()) {
for (int i = 1; i <= numberOfColumns; i++) {
if (i > 1) System.out.print(", ");
String columnValue = rs.getString(i);
System.out.print(columnValue);
System.out.println("");
stmt.close();
con.close();
} catch(SQLException ex) {
System.err.print("SQLException: ");
System.err.println(ex.getMessage());
Thanks,
KennyKenny,
As no one has replied, I've managed to implement a database that uses applets.
Firstly, one needs to obtain a JSP server (apache tomcat is free and can be configured into a IIS 4 server).
Secondly, write all the DB connection stuff within a jsp page (ex.) "builders.jsp"
<%@ page import="java.sql.*" %>
<%!
protected String driver="sun.jdbc.odbc.JdbcOdbcDriver";
protected String url="jdbc:odbc:PhotoDBase";
protected String userid=null;
protected String passwd=null;
%>
<html><head><title>Builder Example</title></head><body>
<%!
public static String GET_BUILDER_QUERY =
"SELECT * FROM BuilderInfo WHERE BuilderID =?";
%>
<%
String bID = "24"; //normally this would use
//request.Parameter("bID");
//in order to pull up a specific
//record. In this test case it is
//hard coded to pull only builder #24
%>
<%
Class.forName(driver);
Connection conn = DriverManager.getConnection(url, userid, passwd);
PreparedStatement stmt = conn.prepareStatement(GET_BUILDER_QUERY);
stmt.setString(1, bID);
ResultSet rs = stmt.executeQuery();
rs.next();
String buildID = rs.getString("BuilderID");
String bName = rs.getString("BuilderName");
String bAddress = rs.getString("Address");
String bCity = rs.getString("City");
String bState = rs.getString("State");
String bZip = rs.getString("Zip");
String bCName = rs.getString("ContactName");
String bCLast = rs.getString("ContactLast");
String bPhone = rs.getString("Phone");
String bFax = rs.getString("Fax");
String bMobile = rs.getString("Pager/Cell");
rs.close();
stmt.close();
if (bName == null)
bName = "No Builder";
if (bAddress == null)
bAddress = "N/A";
if (bCity == null)
bCity = "N/A";
if (bState == null)
bState = "N/A";
if (bZip == null)
bZip = "N/A";
if (bCName == null)
bCName = "N/A";
if (bCLast == null)
bCLast = "N/A";
if (bPhone == null)
bPhone = "N/A";
if (bFax == null)
bFax = "N/A";
if (bMobile == null)
bMobile = "N/A";
%>
<p>Builder: <%= bName%> BuilderID #: <%= buildID%>
<br>Contact: <%= bCName%> <%= bCLast%>
<br>Address: <%= bAddress%>
<br><%= bCity%>, <%= bState%> <%= bZip%>
<br>Phone: <%= bPhone%>
<br>Fax: <%= bFax%>
<br>Mobile: <%= bMobile%>
<p><applet code="Build.class" width="600" height="300">
<param name=buildID value=<%= buildID%>>
<param name=bName value="<%= bName%>">
<param name=bAddress value="<%= bAddress%>">
<param name=bCity value="<%= bCity%>">
<param name=bState value="<%= bState%>">
<param name=bZip value="<%= bZip%>">
<param name=bCName value="<%= bCName%>">
<param name=bCLast value="<%= bCLast%>">
<param name=bPhone value="<%= bPhone%>">
<param name=bFax value="<%= bFax%>">
<param name=bMobile value="<%= bMobile%>">
</applet>
</body>
</html>
The jsp gets the data from the DB based on the parameter bID which would be passed to it via a search or input page with various error checking included.
The applet then recieves its data via parameters. (Build.class has been shortened here to show you the meat and potatoes of the whole deal)
//<applet code="Build.class" width="600" height="300"></applet>
import java.awt.*;
import java.awt.Event;
import java.applet.Applet;
import java.io.*;
public class Build extends java.applet.Applet {
protected Panel search ;
protected TextField Nametxt ;
protected TextField Loctxt ;
protected TextField Citytxt ;
protected TextField Statetxt ;
protected TextField Ziptxt ;
protected TextField CNametxt ;
protected TextField CLasttxt ;
protected TextField Phonetxt ;
protected TextField Faxtxt ;
protected TextField Celltxt ;
public Build(){
super();
search = new Panel();
Nametxt = new TextField();
Loctxt = new TextField();
Citytxt = new TextField();
Statetxt = new TextField();
Ziptxt = new TextField();
CNametxt = new TextField();
CLasttxt = new TextField();
Phonetxt = new TextField();
Faxtxt = new TextField();
Celltxt = new TextField();}
public void init(){
BorderLayout bl = new BorderLayout();
setLayout(bl);
add(search, "Center");
setBackground(Color.white);
String buildID = getParameter("buildID");
String bName = getParameter("bName");
String bAddress = getParameter("bAddress");
String bCity = getParameter("bCity");
String bState = getParameter("bState");
String bZip = getParameter("bZip");
String bCName = getParameter("bCName");
String bCLast = getParameter("bCLast");
String bPhone = getParameter("bPhone");
String bFax = getParameter("bFax");
String bMobile = getParameter("bMobile");
Nametxt.setText(bName);
Loctxt.setText(bAddress);
Citytxt.setText(bCity);
Statetxt.setText(bState);
Ziptxt.setText(bZip);
CNametxt.setText(bCName);
CLasttxt.setText(bCLast);
Phonetxt.setText(bPhone);
Faxtxt.setText(bFax);
Celltxt.setText(bMobile);
Hope this will aid you in yours and anyone elses endevours.
James <[email protected]> -
Problem connecting sql developer with a remote database MAc OSX Snow Leopar
Hi everyone, sorry for my poor english but i don 't speak this language.
I'm trying to connect Sql develper to a remote database and it does not work, showing this error: The Network Adapter could not establish the connection.
Before running sql developer i install the oracle instant client and sql plus, i use the same tnsnames.ora file as my windows machine and sqlplus (in snow leopard) connect perfect.
i set the path of my tnsnames in the setup of sql developer but i can't do it work.
Anyone can help me please? thanks a lot.Duplicate thread Problem running Sql developer in Mac OSX Snow Leopard.
-
SCOM Connector - Find Computer Host of SQL Database relationship
Hi,
I have synced my SQL Databases over til SCSM via the SCOM CI Connector. Using the "Microsoft SQL Server Core Library" MP.
How do I get it to include the Computer Host as a relationship to the database? I think it's rather important to know on which Computer the database resides.
In the management pack, I can see this relationship: Microsoft.SQLServer.WindowsComputerHostsDBPerspective . Which might be it, but I have really know idea what DBPerspective is, and it's not being discovered anyway.
Can anyone explain how this work or have anyone got it to work? Maybe I just need to use the right management packs or something.
Thank you.Ok, but I can't seem to find the relationshipclass for the component. Can you point me in the right direction. Searching for database gets me this:
Microsoft.SQLServer.2008.DatabaseHostsPublication Source Target
Microsoft.SQLServer.2008.DatabaseHostsSubscription Source Target
Microsoft.SQLServer.2008.DistributorContainsDatabase Source Target
Microsoft.SystemCenter.ServiceDesigner.WebApplicationContainsDatabaseGroup Source Target
Microsoft.SystemCenter.ServiceDesigner.WebSiteReferencesDatabase Source Target
Microsoft.SystemCenter.ServiceDesigner.DatabaseGroupContainsDatabase Source Target
Microsoft.SQLServer.DBEngineHostsDatabase Source Target
Microsoft.SystemCenter.DataBaseGroup.ContainsOpsMgrDBWatchersGroup Source Target
Microsoft.SystemCenter.DataBaseGroup.ContainsOpsMgrDWWatchersGroup Source Target
Microsoft.SystemCenter.ManagementGroup.ContainsDatabaseGroup Source Target
But I can't seem to find any relationship where both Computer (or instance) and Database is together. -
Upload sql database to hosting company
Hi folks, quick question,
I create asp.net web application and sql database, I have then created App_Data folder within my application and pasted the MDF & log files into this folder, but my application is still not working!
Works ok on the localhost.
Any tips or advice much appreciated.You have to Restore/Attach the database to an SQL Server Database Engine and refer it from your asp.net code by using the connection strings.
Sandesh Segu | www.SansSQL.com -
Sap J2ee is instaled on remot host
Hi,
I'm work in a proyect with a page web in html,in Sap netweaver developer studio(eclipse) and i like insert date in a database that it is on remot host. How I can to make?
Thanks.
excuse me for my englishok, it depends
of what?
of where is the database?, in case of the database is in the same web server then you can use the timestamp of the server in your sql Statement, or in the case if your Database server resides in another server then y suggest you the posibility to create an Java RMI class that lives on the database server and then call it.
(or a servlet if you wisht to use a web container).
Greetings -
Datapump process cannot connect to REMOTE HOST.
hi,
I am using ORACLE DATABASE 11g on 2 servers. Both have IBM AIX OS in it. I am trying to implement Golden Gate(GG) on it. The scenario is as follows :-
Server 1 :-
I have created 1 extract and 1 datapump processes.
GGSCI (JLFLXFC1) 228> info all
Program Status Group Lag Time Since Chkpt
MANAGER RUNNING
EXTRACT RUNNING R2B 00:00:00 00:00:03
EXTRACT ABENDED R2BDP 00:00:00 00:06:40The datapump process gets aborted after a few tries to connect to the remote host server. The log of datapump is as follows :-
GGSCI (JLFLXFC1) 230> view report r2bdp
Oracle GoldenGate Capture for Oracle
Version 11.1.1.1 OGGCORE_11.1.1_PLATFORMS_110421.2040
AIX 5L, ppc, 64bit (optimized), Oracle 11g on Apr 22 2011 03:25:30
Copyright (C) 1995, 2011, Oracle and/or its affiliates. All rights reserved.
Starting at 2012-06-14 15:13:07
Operating System Version:
AIX
Version 5, Release 3
Node: JLFLXFC1
Machine: 00C576D24C00
soft limit hard limit
Address Space Size : unlimited unlimited
Heap Size : unlimited unlimited
File Size : unlimited unlimited
CPU Time : unlimited unlimited
Process id: 278676
Description:
** Running with the following parameters **
EXTRACT R2BDP
--setenv (ORACLE_SID=NGPR2B)
USERID ggs_owner, PASSWORD *********
RMTHOST FIFLX595,MGRPORT 7809
RMTTRAIL /data01/GoldenGate/dirdat/NGPR2B/rt
PASSTHRU
TABLE R2B.*;
CACHEMGR virtual memory values (may have been adjusted)
CACHEBUFFERSIZE: 64K
CACHESIZE: 8G
CACHEBUFFERSIZE (soft max): 4M
CACHEPAGEOUTSIZE (normal): 4M
PROCESS VM AVAIL FROM OS (min): 16G
CACHESIZEMAX (strict force to disk): 13.99G
Database Version:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
TNS for IBM/AIX RISC System/6000: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
Database Language and Character Set:
NLS_LANG environment variable specified has invalid format, default value will be used.
NLS_LANG environment variable not set, using default value AMERICAN_AMERICA.US7ASCII.
NLS_LANGUAGE = "AMERICAN"
NLS_TERRITORY = "AMERICA"
NLS_CHARACTERSET = "AL32UTF8"
Warning: your NLS_LANG setting does not match database server language setting.
Please refer to user manual for more information.
Opened trail file /data1/GoldenGate/dirdat/R2B/lt000000 at 2012-06-14 15:13:07
2012-06-14 15:13:07 WARNING OGG-01015 Positioning with begin time: Jun 14, 2012 3:13:04 PM, waiting for data: at extseqno 0, extrba 0.
2012-06-14 15:13:37 WARNING OGG-01223 TCP/IP error 79 (Connection refused).
2012-06-14 15:14:17 WARNING OGG-01223 TCP/IP error 79 (Connection refused).
2012-06-14 15:14:57 WARNING OGG-01223 TCP/IP error 79 (Connection refused).
2012-06-14 15:15:37 WARNING OGG-01223 TCP/IP error 79 (Connection refused).
2012-06-14 15:16:17 WARNING OGG-01223 TCP/IP error 79 (Connection refused).
2012-06-14 15:16:57 WARNING OGG-01223 TCP/IP error 79 (Connection refused).
2012-06-14 15:17:37 WARNING OGG-01223 TCP/IP error 79 (Connection refused).
2012-06-14 15:18:17 WARNING OGG-01223 TCP/IP error 79 (Connection refused).
2012-06-14 15:18:57 WARNING OGG-01223 TCP/IP error 79 (Connection refused).
2012-06-14 15:19:37 WARNING OGG-01223 TCP/IP error 79 (Connection refused).
2012-06-14 15:20:17 WARNING OGG-01223 TCP/IP error 79 (Connection refused).
Source Context :
SourceModule : [er.extrout]
SourceID : [/scratch/aime1/adestore/views/aime1_staxk09/oggcore/OpenSys/src/app/er/extrout.c]
SourceFunction : [tcp_send_data(extract_def *)]
SourceLine : [1257]
2012-06-14 15:20:57 ERROR OGG-01224 TCP/IP error 79 (Connection refused); retries exceeded.
2012-06-14 15:20:57 ERROR OGG-01668 PROCESS ABENDING.
GGSCI (JLFLXFC1) 231>I am able to ping the remote server but GG datapump is not able to connect it.
The manager at the remote server shows the following messages in report :-
2012-06-14 14:54:03 INFO OGG-00953 Purging log history from GGS_OWNER.GGS_DDL_HIST older than 2012-06-12 13:54:03.290718: 0 rows deleted from GGS_OWNER
.GGS_DDL_HIST.
2012-06-14 14:54:03 INFO OGG-00953 Purging log history from GGS_OWNER.GGS_DDL_HIST_ALT older than 2012-06-12 13:54:03.297951: 0 rows deleted from GGS_O
WNER.GGS_DDL_HIST_ALT.
2012-06-14 14:54:08 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 14:54:43 INFO OGG-00974 Manager started collector process (Port 7847).
2012-06-14 14:54:48 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 14:55:23 INFO OGG-00974 Manager started collector process (Port 7848).
2012-06-14 14:55:28 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 14:56:03 INFO OGG-00974 Manager started collector process (Port 7849).
2012-06-14 14:56:08 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 14:56:43 INFO OGG-00974 Manager started collector process (Port 7850).
2012-06-14 14:56:48 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 14:57:23 INFO OGG-00974 Manager started collector process (Port 7851).
2012-06-14 14:57:28 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 14:58:03 INFO OGG-00974 Manager started collector process (Port 7852).
2012-06-14 15:09:30 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 15:10:05 INFO OGG-00974 Manager started collector process (Port 7841).
2012-06-14 15:10:10 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 15:10:45 INFO OGG-00974 Manager started collector process (Port 7842).
2012-06-14 15:10:50 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 15:11:25 INFO OGG-00974 Manager started collector process (Port 7843).
2012-06-14 15:11:30 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 15:12:05 INFO OGG-00974 Manager started collector process (Port 7844).
2012-06-14 15:12:10 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 15:12:45 INFO OGG-00974 Manager started collector process (Port 7845).
2012-06-14 15:12:50 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 15:13:25 INFO OGG-00974 Manager started collector process (Port 7846).
2012-06-14 15:13:30 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 15:14:05 INFO OGG-00974 Manager started collector process (Port 7847).
2012-06-14 15:14:10 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 15:14:45 INFO OGG-00974 Manager started collector process (Port 7848).
2012-06-14 15:14:50 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 15:15:25 INFO OGG-00974 Manager started collector process (Port 7849).
2012-06-14 15:15:30 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 15:16:05 INFO OGG-00974 Manager started collector process (Port 7850).
2012-06-14 15:16:10 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 15:16:45 INFO OGG-00974 Manager started collector process (Port 7851).
2012-06-14 15:16:50 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 15:17:25 INFO OGG-00974 Manager started collector process (Port 7852).Can anyone suggest what could be the problem ?
Please guide me how to troubleshoot this problem.
Thanks in advance.Yes, I have changed that previously for testing purpose.
Now i have kept DATAPUMP port and TARGET MGR port to 7809 . Still i am getting the error.
I also checked with TELNET if the port is blocked but its not.
Below is the report of my DATAPUMP and the attempt of TELNET Command.
GGSCI (JLFLXFC1) 30> view report r2bdp
Oracle GoldenGate Capture for Oracle
Version 11.1.1.1 OGGCORE_11.1.1_PLATFORMS_110421.2040
AIX 5L, ppc, 64bit (optimized), Oracle 11g on Apr 22 2011 03:25:30
Copyright (C) 1995, 2011, Oracle and/or its affiliates. All rights reserved.
Starting at 2012-06-18 11:03:30
Operating System Version:
AIX
Version 5, Release 3
Node: JLFLXFC1
Machine: 00C576D24C00
soft limit hard limit
Address Space Size : unlimited unlimited
Heap Size : unlimited unlimited
File Size : unlimited unlimited
CPU Time : unlimited unlimited
Process id: 823546
Description:
** Running with the following parameters **
EXTRACT R2BDP
--setenv (ORACLE_SID=NGPR2B)
USERID ggs_owner, PASSWORD *********
RMTHOST FIFLX595,MGRPORT 7809
RMTTRAIL /data01/GoldenGate/dirdat/NGPR2B/rt
PASSTHRU
TABLE R2B.*;
CACHEMGR virtual memory values (may have been adjusted)
CACHEBUFFERSIZE: 64K
CACHESIZE: 8G
CACHEBUFFERSIZE (soft max): 4M
CACHEPAGEOUTSIZE (normal): 4M
PROCESS VM AVAIL FROM OS (min): 16G
CACHESIZEMAX (strict force to disk): 13.99G
Database Version:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
TNS for IBM/AIX RISC System/6000: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
Database Language and Character Set:
NLS_LANG environment variable specified has invalid format, default value will be used.
NLS_LANG environment variable not set, using default value AMERICAN_AMERICA.US7ASCII.
NLS_LANGUAGE = "AMERICAN"
NLS_TERRITORY = "AMERICA"
NLS_CHARACTERSET = "AL32UTF8"
Warning: your NLS_LANG setting does not match database server language setting.
Please refer to user manual for more information.
Opened trail file /data1/GoldenGate/dirdat/R2B/lt000000 at 2012-06-18 11:03:30
2012-06-18 11:03:30 INFO OGG-01014 Positioning with begin time: Jun 18, 2012 11:03:22 AM, starting record time: Jun 18, 2012 6:50:11 AM at extseqno 0, e
xtrba 4557.
2012-06-18 11:04:00 WARNING OGG-01223 TCP/IP error 79 (Connection refused).
GGSCI (JLFLXFC1) 31> shell telnet FIFLX595 7809
Trying...
Connected to FIFLX595.
Escape character is '^]'.
telnet>qMy MGR at target schema is as follows :-
PORT 7809
USERID ggs_owner, PASSWORD ggs_owner
PURGEOLDEXTRACTS /data01/GoldenGate/dirdat/ex, USECHECKPOINTS, MINKEEPDAYS 3
PURGEMARKERHISTORY MINKEEPDAYS 3, MAXKEEPDAYS 5, FREQUENCYMINUTES 30
PURGEDDLHISTORY MINKEEPDAYS 1, MAXKEEPDAYS 2, FREQUENCYMINUTES 30Please let me know if you find any mistake in this.
Thanks. -
Remote host ftp error dw8 and Mac OS X using airport
I'm learning PHP at a local tech school and can put files and
can connect to my SQL database at the school using DW CS3 and Win
XP. I have a wired connection at school. However, when I try to
work on my site at home on my Mac using OS X 10.4.11 and DW8 I
receive the error: "An FTP error occurred cannot make connection to
host. The remote host cannot be found.
I'm am using passive ftp in dw8 and in my network preferences
on my Mac. I've double checked my settings for the site definition
and cannot find anything wrong. I'm using the same site definition
at school and at home. Since I can connect at school I think it may
be a problem with my firewall and airport. FTP on port 21 is
allowed under firewall preferences.
Any thoughts would be greatly appreciated. I am thoroughly
confused!If you home is not on the same network as your school I'm
surprised you can
connect via Transmit because 10.4.11 is not a valid IP
address. Addresses
starting in the 10.0.0.0 -> 10.255.255.255 range are in a
reserved block
http://www.pantz.org/software/tcpip/subnetchart.html
Cheryl D Wise
"budd100276" <[email protected]> wrote in
message
news:fjv3fd$b9k$[email protected]..
>I forgot to add that I can connect to the server using
another ftp client -
>Transmit.
>
> Thanks. -
Does UTL_FIL utility supports file writing in to remote Host ??
Hi,
I am checking the possibility with UTL_FIL utility whether supports file writing in to remote Host. My database is on different server from UNIX server but i want to make use of Oracle directory objects or UTL_FILES functions to be able to write files directly from Oracle to remote UNIX server.
Is this possible ?
Thanks
AnandUTL_FILE, and any other PL/SQL package running on the database server, can only access objects that the database server has access to. Unless the remote Unix server's file system is mounted from the Oracle server's file system, UTL_FILE would be unable to create a file there.
Now, there may well be alternateives. For example, you could generate the file locally and FTP the file to the remote Unix server, assuming the remote Unix server is running a FTP server.
Justin -
Image path not storing in sql database
Hello,
I have read here on the forum how to upload an image to server and store path in your database, the image uploads correctly to the correct folder on my server but the image path does not get stored on my sql database (not local hosting). I receive the error: The file has been uploaded, and your information has been added to the directory. Column 'image' cannot be null.
My database has the following columns:
id
datum
image
sectie
My code is as follows:
<?php require_once('Connections/dbTroch.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
return $theValue;
mysql_select_db($database_dbTroch, $dbTroch);
$query_rs_aanbod = "SELECT * FROM tblSlideshow ORDER BY id ASC";
$rs_aanbod = mysql_query($query_rs_aanbod, $dbTroch) or die(mysql_error());
$row_rs_aanbod = mysql_fetch_assoc($rs_aanbod);
$totalRows_rs_aanbod = mysql_num_rows($rs_aanbod);
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
$target = "images/slides/"; //This is the directory where images will be saved//
$target = $target . basename( $_FILES['image']['name']); //change the image and name to whatever your database fields are called//
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "add-photos-aanbod")) {
$insertSQL = sprintf("INSERT INTO tblSlideshow (image, sectie) VALUES (%s, %s)",
GetSQLValueString($_POST['file'], "text"),
GetSQLValueString($_FILES['image']['name'], "text"));
//This code writes the photo to the server//
if(move_uploaded_file($_FILES['image']['tmp_name'], $target))
//And confirms it has worked//
echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded, and your information has been added to the directory";
else {
//Gives error if not correct//
echo "Sorry, there was a problem uploading your file.";
mysql_select_db($database_dbTroch, $dbTroch);
$Result1 = mysql_query($insertSQL, $dbTroch) or die(mysql_error());
?>
<!doctype html>
<html>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Troch Project Solutions - Admin - Toevoegen</title>
<link rel="stylesheet" href="css/foundation.css" />
<link rel="stylesheet" href="css/layout.css" />
<!-- Fonts
================================================== -->
<script type="text/javascript" src="//use.typekit.net/vob8gxg.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<!-- jQuery
================================================== -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="js/vendor/modernizr.js"></script>
</head>
<body>
<div class="row">
<div class="large-8 medium-8 small-8 large-centered medium-centered small-centered columns intro">
<h2 class="subheader text-center">Admin</h2>
<p><a>Log uit</a></p>
<p><a href="admin.php">Terug naar Admin menu</a>
<h4>image toevoegen naar aanbod slideshows:</h4>
<form action="<?php echo $row_rs_aanbod['']; ?>" method="POST" name="add-photos-aanbod" id="add-photos-aanbod" enctype="multipart/form-data">
<table>
<tbody>
<tr>
<td><label for="image">Kies foto:</label></td>
<td><input name="image" type="file" id="image" value="<?php echo $row_rs_aanbod['image']; ?>" /></td>
<tr>
<td>Sectie:</td>
<td><select name="sectie" id="sectie" option value="sectie">
<?php
do {
?>
<option value="<?php echo $row_rs_aanbod['sectie']?>"><?php echo $row_rs_aanbod['sectie']?></option>
<?php
} while ($row_rs_aanbod = mysql_fetch_assoc($rs_aanbod));
$rows = mysql_num_rows($rs_aanbod);
if($rows > 0) {
mysql_data_seek($rs_aanbod, 0);
$row_rs_aanbod = mysql_fetch_assoc($rs_aanbod);
?>
</select></td>
</tr>
<tr>
<td><input type="Submit" name="Add" id="add" value="Toevoegen" /></td>
</tr>
</tbody>
</table>
<input type="hidden" name="MM_insert" value="add-photos-aanbod" />
</form>
</div><!-- end large-8 -->
</div><!-- end row -->
<script src="js/vendor/jquery.js"></script>
<script src="/js/vendor/fastclick.js"></script>
<script src="js/foundation.min.js"></script>
<script>
$(document).foundation();
</script>
</body>
</html>
<?php
mysql_free_result($rs_aanbod);
?>
I cannot work out what is wrong and I would appreciate any help on this. ThanksYour form field and array variable names do not match
<td><input name="image" type="file" id="image" value="<?php echo $row_rs_aanbod['image']; ?>" /></td>
GetSQLValueString($_POST['file'], "text"),
Maybe you are looking for
-
MY HP 6700 printer says it is offline. How do we get it back?
From one day to the other, it appeared as "offline" though it´s connected, I have windows 8.1. I desinstalled and tried to install again but in the process the printer is not found. I have also installed the HP Print and Scan Doctor I printed the N
-
New Macbook Pro 15-inch Retina screen flashes white intermittently
I have a new Macbook Pro 15-inch Retina with 2.8 GHz Intel Core i7, 16GB RAM, and 1TB SSD. Running OS X version 10.9.5. Problem: the screen intermittently flashes to white very briefly (for a fraction of a second). This happens once or twice a day. I
-
Smartforms: how can I include a jpg picture stored an a web server ?
I want do include a business graphic (JPG) in a smartforms window. The picture is created by a web serves and stored on a web server. the jpg-picture can be loaded on by an http-adress. How can I include the picture in the smartforms form ? thanks Ri
-
6600slide /S40 Enhancement Request for Calendar an...
Hi experts, I am using calendar in active standby mode, and would really appreciate if calendar takes more than 3 lines from display. Does anyone know how to? Following is copied the same request (old 2 years already) from Reinhard (he mentioned 6300
-
I am having an installation failure issue with my itunes 11 software. File is corrupted and i don't know what to do. I've un-install and re-installed the software three times and continue to get the same error message. It states that "This copy of