Automate MySQL database dump
Hello All,
I am fairly new to Unix administration,OS X in particular. I am in need of opinions for the easiest wasy to automate a command to dump a MySQL database on a rotating weekly basis. I only want 7 days worth of dumps to reside there. I have been doing it manually with the following command (I have replaced sensitive information in quotes).
/usr/local/mysql/bin/mysqldump --user="username" --password="password" --opt "database" | gzip --best > /Volumes/MySQLDB_Dump/rgps_db_dump112906.mysql.gz
The only part that would need to be scripted would be the date, so I think the following script would work...
#!/bin/bash
# RGPS MySQL backup script
# MySQL Database Backup
DATE=`date +%Y.%m.%u` # Year, Month, Day of Week
echo "Performing MySQL Database and system Backup. "
echo ""
echo "Dumping MySQL database to /Volumes/MySQLDB_Dump/rgps_db_dump$DATE.mysql.gz"
/usr/local/mysql/bin/mysqldump --user="username" --password="password" --opt "database" | gzip --best > /Volumes/MySQLDB_Dump/rgps_db_dump$DATE.mysql.gz
echo ""
I am just not sure if automator or cron (I assume this is in OS X since it is BSD) would be best to keep a rotating cycle. IF anyone knows if MySQL has its own utitlity to do this that would be great. Any help is appreciated.
Thanks again.
Julie,
I may be out of place here but I don't think MySQL will make a good
adatabase for Portal Server. Native MySQL is designed for
non-transactional work. Yes MySQL now have transactions, but with the
JDBC Isolation Levels, I have heard of people having problems with this
functionality.
I Suggest if you stay with open source Databases that Postgresql may be
a better fit, as it's structure is more like Oracles except for
translations fr varchar2 and Number formats.
-- Well There is my 2 cents worth.
Tony McClay
Java Architect
"Mr BigMAN"
Julie wrote:
Are there MySql database scripts for all the tables?
Similar Messages
-
What should i do with an Oracle 11g Database, MySQL database and a dump file.
I just joining to a new work field, almost about a database and i know "NOTHING" about this field.
My company has a system that running by Oracle Database, the problem is that Oracle Database will cost a lot of money when my company expands.
So the quest is converting Oracle Database to MySQL database.
Of course i cant try to convert it in the main Database, so i create one Oracle 11g Database on my LocalHost, and it already actived in " Localhost:1158 " etc.
I have another Sever test that already set up MySQL database, and a dump file from the system.
So I want to ask these 2 questions :
1. How to create an new Oracle Database from that dump file ?
2. Is it alright if i use tool to convert Oracle Database into MySql, or i should do it manually ?
Thanks alot.I just joining to a new work field, almost about a database and i know "NOTHING" about this field.
My company has a system that running by Oracle Database, the problem is that Oracle Database will cost a lot of money when my company expands.
So the quest is converting Oracle Database to MySQL database.
I predict that converting to MySQL will cost your company more as it expands. As you expand managing contention becomes more important - Oracle does this for you. I do not think MySQL does, so you'll have to write more code to deal with this, costing the company money. A big part of making application scalable and reliable is to use stored procedures, how good are MySQL's compared to PL/SQL's. What other features are there that MySQL has that will benefit your company that Oracle doesn't. What do you need to think about as your company expands that need to be taken care of in the database. I would have thought a migration from MySQL to Oracle would be more common to deal with expansion.
As you know "NOTHING" you need to think about what each database can give you for the next 10 years to cope with you businesses potential requirements, and extimate how much it will cost to implement these requirements, then make the decision -
How to update transaction data automatically into MySQL database using PI
Dear All,
With reference to subject matter I want a sincere advice regarding how to update transaction data automatically into MySQL database using PI. Is there any link available where I can get step-by-step process.
Ex: I have a MYSQL database in my organization. Whenever a delivery created in SAP some fields like DO Number, DO quantity, SO/STO number should get updated in MYSQL database automatically.
This scenario is related to updation of transactional data into MYSQL DB and I want your suggestions pertaining to same issue.
Thanks and Regards,
Chandra SekharHi .
Develop a sceanrio between SAP to Database system,When the data updates in SAP Tables read the data and update it in DATA Base using JDBC adapter,but there will be some delay in updating data in MySQL.
serach in sdn for IDOC-TOJDBC sceannario,many documents available for the same.
Regards,
Raja Sekhar -
Beware: Time Machine doesn't backup MySQL databases regularly!
I have a Mac OS X Server which runs as a webserver. I had to replace the internal harddisk, which is backupped with TM too. So after replacement I restored the system from the TM backup and discovered that I lost some database content. The contents of the restored database content was several days old. This means that TM doesn't backup the database hourly.
FYI I had backupped the database myself to be sure, so I didn't lost any data. But it took some extra work after restoring. All other files on the server were okay.I'm making an assumption here... but your post doesn't have a ton of detail about your setup so...
It probably has more to do with the fact that you actually shouldn't be backing up a mysql database with time machine if the database is running/live (Of which Time machine has no idea about any of this).
You can't backup open database just like that and it doesn't only apply to time machine. You need to first be doing a dump of the database either manually or with an automated script and then you could allow time machine to backup the dump. You're asking for trouble and behavior similar to what you noticed here if you backup a mysql (or any other open database) in this manner. This includes the LDAP database if this machine is an OD master and cyrus database if you run the OS X mail server (pre 10.6).
Just an FYI that it is quite likely that time machine backed up the files in question but that the database was probably damaged or missing data for the reasons I mentioned above.
There are tools out there that can automate this process (mysql website itself has a Mac GUI client that can do automated backups). -
Access to MySql Database in the Web Service
Hi all,
In my j2me web service project, i want to access to MySql database in the web service and
my installation is
Tomcat 5.0 for Java WSDP,
Java Web Services Developer Pack 1.5,
MySql Server 5.0 and environment variables are adjusted...
server.xml where is in "C:\tomcat50-jwsdp\conf" is adjusted like this
<!-- Replace the above Realm with one of the following to get a Realm
stored in a database and accessed via JDBC -->
<Realm className="org.apache.catalina.realm.JDBCRealm"
debug="99"
driverName="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://localhost:3306/erendb"
connectionName="root"
connectionPassword=""
/>
but i have not access to MySql database in the web service yet...
please help...Hi Luis,
If you see closely, the productID is actually a concatenation of the areaID and the productID. The reasoning here is that a product can be in multiple nodes of the product catalog and one would need to specify the product on a particular node for the direct URL to work.
On a client site, we came up with a better solution by creating a new FM to retrieve the specific areaID and productID for a product. This FM could be called by extending the webshop. Then a .NET program was written to re-direct a shortened form of the URL to the long URL and therefore the specific product in the product catalog. Eg.: http://yyyyy.com/b2c/b2c/product would be automatically redirected to http://yyyyy.com/b2c/b2c/init.do?shop=<shop name>&areaID=<area Guid>&productID=<product Guid>, something similar to the concept behind "tinyurl.com". A point to remember here is that this would work only for the B2C webshop.
Hope this helps.
Cheers,
Ashok. -
How to get data into the mySQL database?
First some background.
I have a website that has outgrown its designed dimensions and is a huge burden to maintain. See PPBM5 Benchmark
There is a lot of maintenance work involved, so I'm investigating a PHP/MySQL approach to easen the burden and to add functionality to the site. With the current Excel based structure and over 420 entries, it is cumbersome for me to maintain, but also for users to find what they need.
A MySQL based dynamic structure is a lot easier and offers vastly more selection capabilities, like selecting only records that meet specific criteria.
Data submission is done with a form, that contains most of the relevant data, but the drawack is that people submitting their data are often not technically inclined, give wrong answers due to a lack of understanding or making typo's. The test results are attached in one or two separate .txt files, but often they have not read the instructions correctly or did something wrong, so these attached .txt files can not be trusted automatically, they have to be checked before inclusion.
These were my initial thoughts:
1. Data collection:
To avoid spending all our energy and time on correcting typo's, getting missing data, correcting errors, I am investigating the use of CPU-Z in Ghost mode to create a .txt or .html file that contains all relevant hardware info we need and even more. It gives all the info we currently have, but adds data like number of memory sticks, DDR timings, stock clock speed and BCLK setting, video card info and VRAM size, etc.
To see what I mean, run CPU-Z, go to the About tab and press the Save Report button and look at the results.
This can all be done without user intervention in an automatic way, but maybe I need to add an Auto-It file to the test to make it all run as desired.
If this works and I'm able to extract the relevant data from the created file and can insert it into the database, we may be in business for the next version of PPBM5.5 or PPBM6. It does require a modification to the instructions, making them a lot easier, because there is less data to fill out.
2. Data submission:
The submission form can be simplified if the CPU-Z data can be used. We have to create an automatic way to attach the created .html file from CPU-Z to the submission form and we have to streamline the Output.txt and Output-MPE.txt files to be more easily included in the 'form.lib.php' file. It currently is manual labor and very time consuming.
3. Adding to Database:
I have to find a way to create database records from the Gmail forms I receive. All incoming mail messages need to be checked on relevancy and if relevant, need to be added automatically to the database and then offered for approval before final inclusion in the database. Data included in the database will then include submission date and time, Email address, IP address used, plus links to the files submitted and available on the website.
4. Publication of the database:
After approval of new records from step 3, all updates will be automatically applied to the database and accessible for users. I do not yet intend to introduce a user account , requesting login before all functionality is accessible. Too much trouble and administration.
Queries should be possible on things like CPU (check box), so include 17-920, i7-930, i7-950 but exclude i7-980X and i7-990X, Size of memory (check box), Overclocked (boolean, yes, no), SSD as OS disk, and similar options.
The biggest problem is to keep the color grading and statistical indicators (Top, D9, Q3, Med, Q1 and D1) intact on dynamically generated queries. Say you make a query which results in 20 observations, this should show the related colors and legends. Next query results in 48 observations and of course the color grading and legends do need to reflect that. Question in my mind, does the RPI remain constant, independent of the query or does that need to be recalculated on the basis of the query?
Next thing is to allow a user to select a specific observation and by simply clicking on it be shown, in a separate window (detail page) or accordion, all the CPU-Z related information about the hardware.
The graphs, Top-20 and MPE Gains, need to be dynamically adjusted, based on the query used.
5. Ideally, external links:
In an ideal situation, one could link the CPU-Z data to external price databases, looking up current prices for CPU, memory, video card, disks, raid controller, etc. to get instant BFTB charts, based on the query made. But that is the next step.
Situation now:
I have a MySQL database that is easily updated with the new submissions. Simply create a .CSV flie from the submitted forms and import that into the database. The bulk of the initial work is done.Lots remain to be done as you can see above, but that is for a later time.
Question:
I have this table, that needs to be filled with data in the submitted and attached files. Mr. X submitted his data and can be uniquely identified by his "Ref_ID". He attached one or two files in .TXT format with the relevant test data. These files are stored on the server with a concatenated name:
"Ref_ID","-","filename"
Say his Ref-ID is: 20110204-6cf5 and his submitted file is called: Output(99).txt then the file can be found on the server as
20110204-6cf5-Output(99).txt
I need to be able to open that comma delimited file, the contents may look like this: "439","1036","819","531" and insert these contents into the relevant record and fields.
Graphically,
is what I want to achieve.
This being my first exposure to PHP/MySQL, you can imagine I'm not clear on how to go from here.
Added complication is that I actually have 5 numbers to insert per record and two calculated fields, Total Score and RPI should be calculated fields. Haven't yet figured out how to handle calculated fields, maybe only in the PHP/HTML code and not in the database.
I hope someone can help me.You do have a very complex looking site and may need several tables in mysql to handle all that data. If you knew to phpmysql I would suggest taking a look at this tutorial it will help get you started in understanding how to $_GET info from a database and also how to $_POST data to a database. I am no expert just learning myself and I found this very helpful. This is the link http://www.adobe.com/devnet/dreamweaver/articles/first_dynamic_site_pt1.html
There are also many tutorials on Youtube to help build a CMS Content Management Site I would suggest the following: -
http://www.youtube.com/user/phpacademy
http://www.youtube.com/user/betterphp
http://www.youtube.com/user/flashbuilding
And many more on my channel here
http://www.youtube.com/user/Whisperingonthewind
CMS's are easier to maintain, add edit and delete content.
I have also recently bought a Book by David Powers Training from the Source very helpful.
Anyway hope you get it sorted. -
Strange problem with MySQL database
Hello,
I'm totally puzzled by a strange error occurring with PHP/MySQL on my website... I hope someone has got an idea of what's going on and can let me know.
In short, I have a MySQL database set up on the remote server where the website is hosted. Some pages of my website access this database with PHP.
If the website is viewed with a browser in Windows (Firefox), it works well, the database data appear on the pages.
If the website is viewed with a browser on Mac OS (Firefox, Safari), it doesn't work: the database isn't accessed, I get no error, just everything on the page below my PHP code is missing.
I've attached two screenshots to show this. The website URL is: http://www.cerc.co.uk/CERC/v02/
The pages were this occurs are: the home page (index.php and alternative index2.php), the Abous us/News page and the About us/News/Archives page.
I really don't get where my mistake is. I would like to keep the remote server connexion details outside the root folder, but I guess that if there is no solution to this problem, then I'll have to move it back (I think it might have worked like that).
Thanks in advance for any comment,
Emilie
More details
I'm using DW CS4 on Windows XP emulated via VMware on Mac OS 10.5 (don't ask why, I wasn't given any choice). I've set up a localhost server on XP via XAMP and the news database is also there.
Because I'm currently flipping often between the testing server and the remote server, I quickly got fed up to change all the time the connexion mode to the database (localhost or remote server) and have to resynchronise the files each time. Hence I decided to automate a bit the way the database is connected to.
1. These 4 HTML pages with PHP code have got the below two lines when the PHP code starts:
$pathpfx = "../.."; // see mysqlconnexion.php
include('assets_design/php/mysqlconnexion.php');
2. mysqlconnexion.php (see code below) calls a "connexion" file (in PHP) depending on the value of one parameter ($conxchoice). If $conxchoice = 1, the "connexion" file on the localhost is called. If $conxchoice = 2, the "connexion" file on the remote server is called. I've stored the appropriate version of mysqlconnexion.php on the localhost and the remote server (and I have checked it a million of times, they're in the right place).
<?php
// This code is called by and therefore included in the code of some PHP pages,
// independently of where the pages are located within the website folder.
// - Connexion to local server: I couldn't get the function include_once to work
// with a relative path, hence the use of an absolute path.
// - Connexion to host server: I couldn't get the function include_once to work
// with an absolute path, hence the use of a relative path. This leads to the
// following problem: the path of conxsrv.php needs to be adapted to the
// position of the calling PHP page within the website, in order for
// conxsrv.php to be found on the server (it is located outside the website
// root folder). The variable $pathpfx is used for this purpose.
$conxchoice = 2; // connect to 1 = testing server, 2 = host server
// Connexion to database
if ( $conxchoice == 1 )
{ include_once('C:\xampp\htdocs\CERC\assets_testing_server_only\conxloc.php'); }
if ( $conxchoice == 2 )
{ include_once("$pathpfx/cgi-bin/sqlconx/conxsrv.php"); }
?>
I would guess that a first hint of solution lies in the comment block, but I've really tried everything I could think of to work with relative path/absolute path respectively, unsuccessfully.
3. The "connexion" file looks like:
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_conx = "aaa";
$database_conx = "bbb";
$username_conx = "ccc";
$password_conx = "ddd";
$conx = mysql_pconnect($hostname_conx, $username_conx, $password_conx) or trigger_error(mysql_error(),E_USER_ERROR);
?>
With aaa, bbb, ccc and ddd the appropriate value depending on the file. The # lines were introduced by DW when these files were created (I've then changed the variable names and moved the files to another place).
ScreenshotsWell, my question has actually not been answered yet but the problem, as strangely as it appeared, has now disappeared. Best but scariest of all, I didn't do anything. Weird.
Hope it never comes back,
Emilie -
Using MySQL database in Jdeveloper
I am using MySQl database in my applicaion.I have successfully created connection to the database and have created entity beans from the tables and a session bean as well to use the entity beans
now when i am trying to call persistEntity(object obj) of session bean, basically to insert records into tables.
i am getting following exception :
Internal Exception: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '"tdmce_approval_status" (APPROVALLEVEL, DOCREFNO, STATUS, COMMEError Code: 1064
Call:INSERT INTO "tdmce_approval_status" (APPROVALLEVEL, DOCREFNO, STATUS, COMMENTS, DMCETYPE, ACTIONDATE) VALUES (?, ?, ?, ?, ?, ?)
bind => [1, 12355, Approved, abcd, import, 12/03/2008]
i believe this insert query is automatically generated by Jdeveloper. have tried executing the same query in sql sheet it has worked perfectly fine.
Can any one please suggest on this ?Hi Frank,
thanks for your response, there are only setters & getters method in my entity
my entity look like this
package buslogic;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
@Entity
@NamedQuery(name = "TdmceApprovalStatus.findAll",
query = "select o from TdmceApprovalStatus o")
@Table(name = "\"tdmce_approval_status\"")
@IdClass(TdmceApprovalStatusPK.class)
public class TdmceApprovalStatus implements Serializable {
@Column(nullable = false)
private String actiondate;
@Id
@Column(nullable = false)
private Integer approvallevel;
private String comments;
@Column(nullable = false)
private String dmcetype;
@Id
@Column(nullable = false)
private String docrefno;
@Id
@Column(nullable = false)
private String status;
public TdmceApprovalStatus() {
public String getActiondate() {
return actiondate;
public void setActiondate(String actiondate) {
this.actiondate = actiondate;
public Integer getApprovallevel() {
return approvallevel;
public void setApprovallevel(Integer approvallevel) {
this.approvallevel = approvallevel;
public String getComments() {
return comments;
public void setComments(String comments) {
this.comments = comments;
public String getDmcetype() {
return dmcetype;
public void setDmcetype(String dmcetype) {
this.dmcetype = dmcetype;
public String getDocrefno() {
return docrefno;
public void setDocrefno(String docrefno) {
this.docrefno = docrefno;
public String getStatus() {
return status;
public void setStatus(String status) {
this.status = status;
& session bean class to call the same
package buslogic;
import buslogic.persistance.TdmceApprovalsFlow;
import buslogic.persistance.TdmceApprovalsFlowPK;
import buslogic.persistance.TdmceUserDetails;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
@Stateless(name = "FirstCheckFacade")
public class FirstCheckFacadeBean implements FirstCheckFacade {
@PersistenceContext(unitName = "SOAServices")
private EntityManager em;
public FirstCheckFacadeBean() {
public Object mergeEntity(Object entity) {
return em.merge(entity);
public Object persistEntity(Object entity) {
em.persist(entity);
return entity;
/** <code>select o from TdmceApprovalsFlow o</code> */
public List<TdmceApprovalsFlow> queryTdmceApprovalsFlowFindAll() {
return em.createNamedQuery("TdmceApprovalsFlow.findAll").getResultList();
public void removeTdmceApprovalsFlow(TdmceApprovalsFlow tdmceApprovalsFlow) {
tdmceApprovalsFlow =
em.find(TdmceApprovalsFlow.class, new TdmceApprovalsFlowPK(tdmceApprovalsFlow.getApprovallevel(),
tdmceApprovalsFlow.getDmcetype()));
em.remove(tdmceApprovalsFlow);
/** <code>select o from TdmceUserDetails o</code> */
public List<TdmceUserDetails> queryTdmceUserDetailsFindAll() {
return em.createNamedQuery("TdmceUserDetails.findAll").getResultList();
public void removeTdmceUserDetails(TdmceUserDetails tdmceUserDetails) {
tdmceUserDetails =
em.find(TdmceUserDetails.class, tdmceUserDetails.getUserid());
em.remove(tdmceUserDetails);
Where else can i look for the query?or for mysql i have to configure some property. -
IIS7 + ColdFusion 9 connection to MySQL database
Hi,
I have set ColdFusion 9 and IIS7 now, it needs to connect MySQL database from ColdFusion 9.
What I still need to make it all work.
Please tell me how do I connect to my MySQL database from ColdFusion
Thank you.When I configure Flex. The combination of ColdFusion server when setting location, set on a standalone and there is automatically selected Deployed to J2EE server. Why is this happening?
-
10g Full Database Dump Takes more than 2 Hours Still not finished
Hi all,
Full Database Dump Takes more than 2 Hours, Still not finished.
Version - Oracle 10g 1.0.2.0
Database Size is Around 160GB.
Used Below Query to take Full Database Dump.
expdp user/pwd@10gdb full=y directory=test_dir dumpfile=curent10g.dmp logfile=expdpcurent10g.log;
It takes more than 1 hour in processing the functions.i.e)
Processing object type DATABASE_EXPORT/SCHEMA/FUNCTION/FUNCTION
And the Log File:
Export: Release 10.1.0.2.0 - Production on Friday, 04 May, 2012 10:17
Copyright (c) 2003, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
FLASHBACK automatically enabled to preserve database integrity.
Starting "EXPTEST"."SYS_EXPORT_FULL_02": exptest/********@curentdb full=Y directory=test_dir dumpfile=curent10g.dmp logfile=expdpcurent10g.log;
Estimate in progress using BLOCKS method...
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 4.574 GB
Processing object type DATABASE_EXPORT/TABLESPACE
Processing object type DATABASE_EXPORT/DE_SYS_USER/USER
Processing object type DATABASE_EXPORT/SCHEMA/USER
Processing object type DATABASE_EXPORT/ROLE
Processing object type DATABASE_EXPORT/GRANT/SYSTEM_GRANT/PROC_SYSTEM_GRANT
Processing object type DATABASE_EXPORT/SCHEMA/GRANT/SYSTEM_GRANT
Processing object type DATABASE_EXPORT/SCHEMA/ROLE_GRANT
Processing object type DATABASE_EXPORT/SCHEMA/DEFAULT_ROLE
Processing object type DATABASE_EXPORT/SCHEMA/TABLESPACE_QUOTA
Processing object type DATABASE_EXPORT/RESOURCE_COST
Processing object type DATABASE_EXPORT/SCHEMA/DB_LINK
Processing object type DATABASE_EXPORT/TRUSTED_DB_LINK
Processing object type DATABASE_EXPORT/SCHEMA/SEQUENCE/SEQUENCE
Processing object type DATABASE_EXPORT/SCHEMA/SEQUENCE/GRANT/DE_S_SEQ_OWNER_OBJGRANT/OBJECT_GRANT
Processing object type DATABASE_EXPORT/DIRECTORY/DIRECTORY
Processing object type DATABASE_EXPORT/DIRECTORY/GRANT/OBJECT_GRANT
Processing object type DATABASE_EXPORT/CONTEXT
Processing object type DATABASE_EXPORT/SCHEMA/DE_PUBLIC_SYNONYM/SYNONYM
Processing object type DATABASE_EXPORT/SCHEMA/SYNONYM
Processing object type DATABASE_EXPORT/SCHEMA/TYPE/TYPE_SPEC
Processing object type DATABASE_EXPORT/DE_SYSTEM_PROCOBJACT/DE_PRE_SYSTEM_ACTIONS/PROCACT_SYSTEM
Processing object type DATABASE_EXPORT/DE_SYSTEM_PROCOBJACT/DE_POST_SYSTEM_ACTIONS/PROCACT_SYSTEM
Processing object type DATABASE_EXPORT/SCHEMA/PROCACT_SCHEMA
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/PRE_TABLE_ACTION
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/GRANT/DE_S_TABLE_OWNER_OBJGRANT/OBJECT_GRANT
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/GRANT/DE_S_TABLE_NOTWGO_OBJGRANT/OBJECT_GRANT
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/INDEX
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/CONSTRAINT/CONSTRAINT
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/COMMENT
Processing object type DATABASE_EXPORT/SCHEMA/PACKAGE/PACKAGE_SPEC
Processing object type DATABASE_EXPORT/SCHEMA/PACKAGE/GRANT/DE_S_PACKAGE_OWNER_OBJGRANT/OBJECT_GRANT
Processing object type DATABASE_EXPORT/SCHEMA/FUNCTION/FUNCTION
Help me.Export is Still in progress
Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
Job: SYS_EXPORT_FULL_02
Owner: EXPTEST
Operation: EXPORT
Creator Privs: FALSE
GUID: 94AB0C8AA824462AA96C8481CF0F676F
Start Time: Friday, 04 May, 2012 10:18
Mode: FULL
Instance: curentdb
Max Parallelism: 1
EXPORT Job Parameters:
Parameter Name Parameter Value:
CLIENT_COMMAND userexp/********@curentdb full=Y directory=test_dir dumpfile=curent10g.dmp logfile=expdpcurent10g.log;
DATA_ACCESS_METHOD AUTOMATIC
ESTIMATE BLOCKS
INCLUDE_METADATA 1
LOG_FILE_DIRECTORY TEST_DIR
LOG_FILE_NAME expdpcurent10g.log;
TABLE_CONSISTENCY 0
State: EXECUTING
Bytes Processed: 0
Current Parallelism: 1
Job Error Count: 0
Dump File: C:\ORACLE DMP\CURENT10G.DMP
bytes written: 4,096
Worker 1 Status:
State: EXECUTING
Object Schema: PUBLIC
Object Type: DATABASE_EXPORT/SCHEMA/PACKAGE/GRANT/DE_S_PACKAGE_OWNER_OBJGRANT/OBJECT_GRANT
Completed Objects: 1
Total Objects: 1
What Does it mean, Suggest. -
Using two MySQL databases at once
I have a situation where one PHP page needs to access two
MySQL databases
for different functions (it's in integration thing). I don't
think I can
combine the databases because two different programs are set
up and using
them separately. Is there a way to do this without PHP
getting as confused
as it's getting? Obviously I'm no MySQL and PHP expert.....
Mad DogDavid Powers wrote:
> Mad Dog wrote:
>> That's the problem, both of these are programs that
automatically
>> set up their own MySQL databases and make the
connections (Wordpress
>> and EasyPHPCalendar), so it's not so easy to control
the
>> connections. Each works fine, but if I call the
calendar from within
>> Wordpress, it doesn't know to switch to another
connection and gets
>> all confused.
>
> It sounds as though one or both of those applications
has been badly
> set up (although not necessarily by you - it's more
likely the way it
> has been designed).
>
> Most programs, including Dreamweaver, use the original
MySQL extension
> within PHP to connect to MySQL. Specifying which
connection to use is
> optional with the original MySQL extension; if no
connection is
> specified, PHP uses whichever was opened last. To use
two separate
> connections, the correct connection must be specified.
Dreamweaver
> does this automatically. You need to look at the PHP
code in
> WordPress and EasyPHPCalender to see if either of them
specifies the
> connection. The easy way to tell is by looking at any
line containing
> mysql_query(). If it contains two arguments, the
connection is being
> properly specified. If it contains just one, that's the
program
> that's causing the problem.
I think I've got it. There might be other tweaks needed, but
I moved the
EasyPHPCalendar table into the same database as the Wordpress
table. With
luck (I'll know tomorrow when I mess with it) that should cut
the confusion
factor!
Thanks,
MD -
Hi all,
I have tow database in my oracle server 10g , mydb1 and mudb2 , and have tow database dumps ,mydb1.dmp and mydb2.dmp. I learned from other forums that to be able to import the dump file i need that the specific database should be started and up . My question is how to start one database mydb1 and in the same time the other database mydb2 is down because by default they are started at the same time .
BRHi,
Wat is the OS Are you using?
I am just guessing it should be windows, Whenever windows startup there is a registry entry
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\oracle_home_name.
There will be a key
ORA_SID_AUTOSTART. SID is your database SID.
If it is set to true, the databases will start autoamtically, you can change it to false if you dont need it.
Or if you navigate to the services.msc you can find the ORACLESERVICESID where you have two types of start parameters 1) Automatic (whenver windows starts it will automatically start the db)
2) Manual (You can start the DB whenever you need it)
To start database connect to the sql prompt and issue STARTUP to shutdown the db issue SHUTDOWN ON sql prompt.
Regards,
Vijayaraghavan K -
How to conncet mysql database and oracle database 11g2 on linux 5.4
Hi,
Can anyone help me to connect mysql server database to Oracle
database on Linux OS?
I have done all things, but I am getting a problem in installing dg4odbc
driver on Oracle database. In a simple word, I don't know how to create
listener between mysql database and Oracle database.
If anyone knows that please help me in configuring dg4odbc for Oracle. OS
-Linux 5.4 and refer any doc or link.
oracle 11g2 11.2.0.1
i follow the metalink id - 466228.1 ( but cant successed).
Thanks and regards,
pritesh ranjanhi pl z clear me it is required to install manully the dg4odbc driver for oracle to connect MySQL server database. because in my $ORACLE_HOME/hs/admin/initdg4odbc.ora is present automatically.
details of the initdg4odbc.ora
# This is a sample agent init file that contains the HS parameters that are
# needed for the Database Gateway for ODBC
# HS init parameters
HS_FDS_CONNECT_INFO = mysql_odbc
HS_FDS_TRACE_LEVEL = off
HS_FDS_SHAREABLE_NAME = /usr/lib/libmyodbc5w.so
# ODBC specific environment variables
set ODBCINI=/etc/odbc.ini
set LD_LIBRARY_PATH=/usr/lib
# Environment variables required for the non-Oracle system
#set HOME=/home/oracle
~
~
~
"initdg4odbc.ora" 20L, 437C
details of the listener.ora file
DG4ODBC =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA=(SID=dg4odbc))
(HS=OK)
SID_LIST_ORCL =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = ORCL)
ADR_BASE_DG4ODBC = /u01/app/oracle
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = pritesh11gprim.oracle.com)(PORT = 1521))
ADR_BASE_ORCL = /u01/app/oracle
"listener.ora" [readonly] 37L, 779C 35,0-1 85%
details of tnsname.ora file
# tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.132)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ORCL)
DG4ODBC =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
(CONNECT_DATA=(SID=DG4ODBC))
(HS=OK)
MYSQL =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
(CONNECT_DATA=(SID=MYSQL))
(HS=OK)
when i m going to start the listener it could not be started..
details of the mysql server database
[root@pritesh11gprim ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.6.10 MySQL Community Server (GPL)
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
mysql> show databases;
| Database |
| information_schema |
| demo |
| mysql |
| performance_schema |
| pritesh |
| test |
6 rows in set (0.01 sec)
if any where i m wrong then plz suggest me......
thanks & regards
pritesh ranjan -
Migrate mysql database to maxdb 7.6.
Hello,
we have a mysql database and want to migrate to maxdb 7.6.
Is there existing a tool. We have tried to import the mysql-dump, but it cannot be imported from maxdb, because there is for example a ";" instead of "//" at he end of the line.
Can anayone help?
Regards Oliver> we have a mysql database and want to migrate to maxdb 7.6.
>
> Is there existing a tool. We have tried to import the mysql-dump, but it cannot be imported from maxdb, because there is for example a ";" instead of "//" at he end of the line.
I don't know about any specific tool for this, but you can setup the line-separator for the loadercli, so that a ; is used.
Also you can switch sqlcli to multiline-mode (/m) and then also ; will be used instead of "//".
Finally (of course) you can just serch-replace the "//"...
regards,
Lars -
MySql database Connection failure
Hi,
I have following code. I am using MySql database. and Tomcat server and MySql jdbc driver. I am able to get the Datasource but when I call getConnection on ds, I get Connection object as null. Any help here?
ctx = new InitialContext();
if( ctx == null ) throw new Exception("ERROR - No Context");
// ESTABLISH THE DataSource //
ds = (DataSource)ctx.lookup("java:comp/env/jdbc/xmediaDB");
if( ds == null ) throw new Exception("ERROR - DataSource is null");
// ESTABLISH THE Connection //
con = ds.getConnection();
if( con == null ) throw new Exception("ERROR - Failed to get connection");Yes database is running...
Here are my server.xml and web.xml anything wrong here?
Hi sherbir,
Pl let me know if anything wrong.
Here is my server.xml :
<!-- Example Server Configuration File -->
<!-- Note that component elements are nested corresponding to their
parent-child relationships with each other -->
<!-- A "Server" is a singleton element that represents the entire JVM,
which may contain one or more "Service" instances. The Server
listens for a shutdown command on the indicated port.
Note: A "Server" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<Server port="8005" shutdown="SHUTDOWN" debug="0">
<!-- Uncomment these entries to enable JMX MBeans support -->
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
debug="0"/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
debug="0"/>
<!-- Global JNDI resources -->
<GlobalNamingResources>
<!-- Test entry for demonstration purposes -->
<Environment name="simpleValue" type="java.lang.Integer" value="30"/>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users -->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved">
</Resource>
<ResourceParams name="UserDatabase">
<parameter>
<name>factory</name>
<value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
</parameter>
<parameter>
<name>pathname</name>
<value>conf/tomcat-users.xml</value>
</parameter>
</ResourceParams>
</GlobalNamingResources>
<!-- A "Service" is a collection of one or more "Connectors" that share
a single "Container" (and therefore the web applications visible
within that Container). Normally, that Container is an "Engine",
but this is not required.
Note: A "Service" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<!-- Define the Tomcat Stand-Alone Service -->
<Service name="Tomcat-Standalone">
<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Each Connector passes requests on to the
associated "Container" (normally an Engine) for processing.
By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
You can also enable an SSL HTTP/1.1 Connector on port 8443 by
following the instructions below and uncommenting the second Connector
entry. SSL support requires the following steps (see the SSL Config
HOWTO in the Tomcat 4.0 documentation bundle for more detailed
instructions):
* Download and install JSSE 1.0.2 or later, and put the JAR files
into "$JAVA_HOME/jre/lib/ext".
* Execute:
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix)
with a password value of "changeit" for both the certificate and
the keystore itself.
By default, DNS lookups are enabled when a web application calls
request.getRemoteHost(). This can have an adverse impact on
performance, so you can disable it by setting the
"enableLookups" attribute to "false". When DNS lookups are disabled,
request.getRemoteHost() will return the String version of the
IP address of the remote client.
-->
<!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8081 -->
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8080"
minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="100" debug="0" connectionTimeout="20000"
useURIValidationHack="false" disableUploadTimeout="true" />
<!-- Note : To disable connection timeouts, set connectionTimeout value
to 0 -->
<!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
<!--
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8443" minProcessors="5" maxProcessors="75"
enableLookups="true"
acceptCount="100" debug="0" scheme="https" secure="true"
useURIValidationHack="false" disableUploadTimeout="true">
<Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
clientAuth="false" protocol="TLS" />
</Connector>
-->
<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8009" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" connectionTimeout="20000"
useURIValidationHack="false"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
<!-- Define an AJP 1.3 Connector on port 8009 -->
<!--
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="8009" minProcessors="5" maxProcessors="75"
acceptCount="10" debug="0"/>
-->
<!-- Define a Proxied HTTP/1.1 Connector on port 8082 -->
<!-- See proxy documentation for more information about using this. -->
<!--
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8082" minProcessors="5" maxProcessors="75"
enableLookups="true" disableUploadTimeout="true"
acceptCount="100" debug="0" connectionTimeout="20000"
proxyPort="80" useURIValidationHack="false" />
-->
<!-- Define a non-SSL legacy HTTP/1.1 Test Connector on port 8083 -->
<!--
<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="8083" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" />
-->
<!-- Define a non-SSL HTTP/1.0 Test Connector on port 8084 -->
<!--
<Connector className="org.apache.catalina.connector.http10.HttpConnector"
port="8084" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" />
-->
<!-- An Engine represents the entry point (within Catalina) that processes
every request. The Engine implementation for Tomcat stand alone
analyzes the HTTP headers included with the request, and passes them
on to the appropriate Host (virtual host). -->
<!-- Define the top level container in our container hierarchy -->
<Engine name="Standalone" defaultHost="localhost" debug="0">
<!-- The request dumper valve dumps useful debugging information about
the request headers and cookies that were received, and the response
headers and cookies that were sent, for all requests received by
this instance of Tomcat. If you care only about requests to a
particular virtual host, or a particular application, nest this
element inside the corresponding <Host> or <Context> entry instead.
For a similar mechanism that is portable to all Servlet 2.3
containers, check out the "RequestDumperFilter" Filter in the
example application (the source for this filter may be found in
"$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters").
Request dumping is disabled by default. Uncomment the following
element to enable it. -->
<!--
<Valve className="org.apache.catalina.valves.RequestDumperValve"/>
-->
<!-- Global logger unless overridden at lower levels -->
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="catalina_log." suffix=".txt"
timestamp="true"/>
<!-- Because this Realm is here, an instance will be shared globally -->
<!-- This Realm uses the UserDatabase configured in the global JNDI
resources under the key "UserDatabase". Any edits
that are performed against this UserDatabase are immediately
available for use by the Realm. -->
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
debug="0" resourceName="UserDatabase"/>
<!-- Comment out the old realm but leave here for now in case we
need to go back quickly -->
<!--
<Realm className="org.apache.catalina.realm.MemoryRealm" />
-->
<!-- Replace the above Realm with one of the following to get a Realm
stored in a database and accessed via JDBC -->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="org.gjt.mm.mysql.Driver"
connectionURL="jdbc:mysql://localhost/authority"
connectionName="test" connectionPassword="test"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="oracle.jdbc.driver.OracleDriver"
connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL"
connectionName="scott" connectionPassword="tiger"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="sun.jdbc.odbc.JdbcOdbcDriver"
connectionURL="jdbc:odbc:CATALINA"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!-- Define the default virtual host -->
<Host name="localhost" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<!-- Normally, users must authenticate themselves to each web app
individually. Uncomment the following entry if you would like
a user to be authenticated the first time they encounter a
resource protected by a security constraint, and then have that
user identity maintained across *all* web applications contained
in this virtual host. -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn"
debug="0"/>
-->
<!-- Access log processes all requests for this virtual host. By
default, log files are created in the "logs" directory relative to
$CATALINA_HOME. If you wish, you can specify a different
directory with the "directory" attribute. Specify either a relative
(to $CATALINA_HOME) or absolute path to the desired directory.
-->
<!--
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>
-->
<!-- Logger shared by all Contexts related to this virtual host. By
default (when using FileLogger), log files are created in the "logs"
directory relative to $CATALINA_HOME. If you wish, you can specify
a different directory with the "directory" attribute. Specify either a
relative (to $CATALINA_HOME) or absolute path to the desired
directory.-->
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="localhost_log." suffix=".txt"
timestamp="true"/>
<!-- Define properties for each web application. This is only needed
if you want to set non-default properties, or have web application
document roots in places other than the virtual host's appBase
directory. -->
<!-- Tomcat Root Context -->
<!--
<Context path="" docBase="ROOT" debug="0"/>
-->
<!-- Tomcat Examples Context -->
<Context path="/examples" docBase="examples" debug="0"
reloadable="true" crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_examples_log." suffix=".txt"
timestamp="true"/>
<Ejb name="ejb/EmplRecord" type="Entity"
home="com.wombat.empl.EmployeeRecordHome"
remote="com.wombat.empl.EmployeeRecord"/>
<!-- If you wanted the examples app to be able to edit the
user database, you would uncomment the following entry.
Of course, you would want to enable security on the
application as well, so this is not done by default!
The database object could be accessed like this:
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");
UserDatabase database =
(UserDatabase) envCtx.lookup("userDatabase");
-->
<!--
<ResourceLink name="userDatabase" global="UserDatabase"
type="org.apache.catalina.UserDatabase"/>
-->
<!-- PersistentManager: Uncomment the section below to test Persistent
Sessions.
saveOnRestart: If true, all active sessions will be saved
to the Store when Catalina is shutdown, regardless of
other settings. All Sessions found in the Store will be
loaded on startup. Sessions past their expiration are
ignored in both cases.
maxActiveSessions: If 0 or greater, having too many active
sessions will result in some being swapped out. minIdleSwap
limits this. -1 means unlimited sessions are allowed.
0 means sessions will almost always be swapped out after
use - this will be noticeably slow for your users.
minIdleSwap: Sessions must be idle for at least this long
(in seconds) before they will be swapped out due to
maxActiveSessions. This avoids thrashing when the site is
highly active. -1 or 0 means there is no minimum - sessions
can be swapped out at any time.
maxIdleSwap: Sessions will be swapped out if idle for this
long (in seconds). If minIdleSwap is higher, then it will
override this. This isn't exact: it is checked periodically.
-1 means sessions won't be swapped out for this reason,
although they may be swapped out for maxActiveSessions.
If set to >= 0, guarantees that all sessions found in the
Store will be loaded on startup.
maxIdleBackup: Sessions will be backed up (saved to the Store,
but left in active memory) if idle for this long (in seconds),
and all sessions found in the Store will be loaded on startup.
If set to -1 sessions will not be backed up, 0 means they
should be backed up shortly after being used.
To clear sessions from the Store, set maxActiveSessions, maxIdleSwap,
and minIdleBackup all to -1, saveOnRestart to false, then restart
Catalina.
-->
<!--
<Manager className="org.apache.catalina.session.PersistentManager"
debug="0"
saveOnRestart="true"
maxActiveSessions="-1"
minIdleSwap="-1"
maxIdleSwap="-1"
maxIdleBackup="-1">
<Store className="org.apache.catalina.session.FileStore"/>
</Manager>
-->
<Environment name="maxExemptions" type="java.lang.Integer"
value="15"/>
<Parameter name="context.param.name" value="context.param.value"
override="false"/>
<Resource name="jdbc/EmployeeAppDb" auth="SERVLET"
type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/EmployeeAppDb">
<parameter><name>user</name><value>sa</value></parameter>
<parameter><name>password</name><value></value></parameter>
<parameter><name>driverClassName</name>
<value>org.hsql.jdbcDriver</value></parameter>
<parameter><name>driverName</name>
<value>jdbc:HypersonicSQL:database</value></parameter>
</ResourceParams>
<Resource name="mail/Session" auth="Container"
type="javax.mail.Session"/>
<ResourceParams name="mail/Session">
<parameter>
<name>mail.smtp.host</name>
<value>localhost</value>
</parameter>
</ResourceParams>
<ResourceLink name="linkToGlobalResource"
global="simpleValue"
type="java.lang.Integer"/>
</Context>
<!--
Review Production Web Application Context
NOTE: this set of connection params points to the development database because we're on the developement server.
-->
<Context
path="/review"
debug="0"
reloadable="true"
docBase="C:\download\eclipse\eclipse\workspace\review"
workDir="C:\download\eclipse\eclipse\workspace\review\work\org\apache\jsp" >
<Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_review_log." suffix=".txt" timestamp="true"/>
<!-- JNDI entries for xmedia db -->
<Resource name="jdbc/xmediaDB"
auth="Container"
type="javax.sql.DataSource">
</Resource>
<ResourceParams name ="jdbc/xmediaDB">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>50</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>30</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>80</value>
</parameter>
<parameter>
<name>username</name>
<value>root</value>
</parameter>
<parameter>
<name>password</name>
<value>admin</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>com.mysql.jdbc.Driver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:mysql://153.32.143.96:3306/xmedia_dev?autoReconnect=true</value>
</parameter>
</ResourceParams>
</Context>
</Host>
</Engine>
</Service>
<!-- The MOD_WEBAPP connector is used to connect Apache 1.3 with Tomcat 4.0
as its servlet container. Please read the README.txt file coming with
the WebApp Module distribution on how to build it.
(Or check out the "jakarta-tomcat-connectors/webapp" CVS repository)
To configure the Apache side, you must ensure that you have the
"ServerName" and "Port" directives defined in "httpd.conf". Then,
lines like these to the bottom of your "httpd.conf" file:
LoadModule webapp_module libexec/mod_webapp.so
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples/
The next time you restart Apache (after restarting Tomcat, if needed)
the connection will be established, and all applications you make
visible via "WebAppDeploy" directives can be accessed through Apache.
-->
<!-- Define an Apache-Connector Service -->
<!--
<Service name="Tomcat-Apache">
<Connector className="org.apache.catalina.connector.warp.WarpConnector"
port="8008" minProcessors="5" maxProcessors="75"
enableLookups="true" appBase="webapps"
acceptCount="10" debug="0"/>
<Engine className="org.apache.catalina.connector.warp.WarpEngine"
name="Apache" debug="0">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="apache_log." suffix=".txt"
timestamp="true"/>
<Realm className="org.apache.catalina.realm.MemoryRealm" />
</Engine>
</Service>
-->
</Server>and Here is my web.xml :
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<!-- BEGIN: icon section -->
<!-- END: icon section -->
<!-- BEGIN: display-name section -->
<display-name>Cross-Media Review Server</display-name>
<!-- END: display-name section -->
<!-- BEGIN: description section -->
<description>
Cross-Media Review Server
</description>
<!-- END: description section -->
<!-- BEGIN: distributable section -->
<!-- END: distributable section -->
<!-- BEGIN: context-param section -->
<context-param>
<param-name>javax.servlet.jsp.jstl.fmt.locale</param-name>
<param-value>en-US</param-value>
</context-param>
<context-param>
<param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
<param-value>messages</param-value>
</context-param>
<!-- END: context-param section -->
<!-- BEGIN: listener section -->
<!-- END: listener section -->
<!-- BEGIN: error-page section -->
<!-- END: error-page section -->
<!-- BEGIN: filter section -->
<filter>
<filter-name>ReviewAuthenFilter</filter-name>
<filter-class>com.adobe.xmtech.review.BeamAuthenticationFilter</filter-class>
</filter>
<!-- END: filter section -->
<!-- BEGIN: filter-mapping section -->
<filter-mapping>
<filter-name>ReviewAuthenFilter</filter-name>
<servlet-name>ReviewHandler</servlet-name>
</filter-mapping>
<!-- END: filter-mapping section -->
<!-- BEGIN: servlet section -->
<servlet>
<servlet-name>ReviewHandler</servlet-name>
<servlet-class>com.adobe.review.ReviewHandler</servlet-class>
<init-param>
<param-name>AcrobatFeedback</param-name>
<param-value>none</param-value> <!-- console, alert, none -->
</init-param>
<init-param>
<param-name>FDFLogging</param-name>
<param-value>file</param-value> <!-- file, none -->
</init-param>
</servlet>
<servlet>
<servlet-name>Image</servlet-name>
<servlet-class>com.adobe.review.util.ImageServer</servlet-class>
</servlet>
<servlet>
<servlet-name>Precompile</servlet-name>
<servlet-class>com.adobe.review.util.Precompile</servlet-class>
</servlet>
<servlet>
<servlet-name>Login</servlet-name>
<servlet-class>com.adobe.xmtech.review.Login</servlet-class>
</servlet>
<servlet>
<servlet-name>Logout</servlet-name>
<servlet-class>com.adobe.xmtech.review.Logout</servlet-class>
</servlet>
<servlet>
<servlet-name>FetchPDF</servlet-name>
<servlet-class>com.adobe.review.beam.misc.FetchPDF</servlet-class>
</servlet>
<!-- END: servlet section -->
<!-- BEGIN: servlet-mapping section -->
<servlet-mapping>
<servlet-name>Image</servlet-name>
<url-pattern>/acrobat/img/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Precompile</servlet-name>
<url-pattern>/acrobat/jsp/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Login</servlet-name>
<url-pattern>/acrobat/misc/Login</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Logout</servlet-name>
<url-pattern>/acrobat/misc/Logout</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>FetchPDF</servlet-name>
<url-pattern>/acrobat/misc/FetchPDF/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ReviewHandler</servlet-name>
<url-pattern>/acrobat/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ReviewHandler</servlet-name>
<url-pattern>*.fdf</url-pattern>
</servlet-mapping>
<!-- END: servlet-mapping section -->
<!-- BEGIN: session-config section -->
<session-config>
<session-timeout>86400</session-timeout>
</session-config>
<!-- END: session-config section -->
<!-- BEGIN: mime-mapping section -->
<mime-mapping>
<extension>pdf</extension>
<mime-type>application/pdf</mime-type>
</mime-mapping>
<mime-mapping>
<extension>fdf</extension>
<mime-type>application/fdf</mime-type>
</mime-mapping>
<!-- END: mime-mapping section -->
<!-- BEGIN: welcome-file-list section -->
<welcome-file-list>
<welcome-file>login.jsp</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
</welcome-file-list>
<!-- END: welcome-file-list section -->
<!-- BEGIN: error-page section -->
<!-- END: error-page section -->
<!-- BEGIN: taglib section -->
<!-- END: taglib section -->
<!-- BEGIN: resource-ref section -->
<!-- krs added for JNDI db connection -->
<resource-ref>
<description>DB Connection</description>
<!-- For JBoss, use java:/jdbc/xmediaDB as the res-ref-name -->
<!-- For Tomcat, use jdbc/xmediaDB as the res-ref-name -->
<res-ref-name>java:comp/env/jdbc/xmediaDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<!-- END: resource-ref section -->
<!-- BEGIN: security-constriaint section -->
<!-- END: security-constriaint section -->
<!-- BEGIN: login-config section -->
<!-- END: login-config section -->
<!-- BEGIN: security-role section -->
<!-- END: security-role section -->
<!-- BEGIN: env-entry section -->
<!-- END: env-entry section -->
<!-- BEGIN: ejb-ref section -->
<!-- END: ejb-ref section -->
</web-app>
Maybe you are looking for
-
Configuration Control Node not getting displayed in Sol man
Hi Experts, At Plant Maintenace configuration node Configuraton Control node needs to be configured to use IE4N Transcation. Where as this node is not visiable in my Solution Manager setting. The same can be seen in Dev & Qulaity system. Please guide
-
Apple ID for business, one device for multiple users
My workplace has purchased 3 iPads for staff use on 3 departments, each department has multiple employees each will require use of the device. We'd like to avoid one staff member signing in with their personal Apple ID as the device will then be pass
-
Error while starting the weblogic admin server for OSB
Hi all, Please help. My admin server startup is breaking for weblogic 11g for the following cause : Caused By: oracle.mds.exception.MDSExceptionList: MDS-01329: unable to load elem ent "persistence-config" MDS-01370: MetadataStore configuration for m
-
Unable to Cancel Skype Premium Subscrption
Hi, I am unable to cancel Skype Premium subscription. When I go to Group Video->Change Subscription Settings-> It returns page cannot be displayed page. I tried it 3 different systems, but same message. Please help. Regards.
-
HP Pro3330 Micro Tower Graphic Card Driver Error Pls Help ~
(1) HP Pro3330 MicroTower (2) Product No D3V03PA#UUF Downgrade to Windows 7 Professional 32bit I Download Grahpic Driver on This : Intel Graphics Driver (32-bit) sp54268.exe But after i extract and run install , keep showing me this error This Comput