ORA-00285: TIME not given as constant string
Helloin 10g R2:
How to write then:
SQL> recover database until time to_date"('17-02-2009 06:27:00','DD-MM-YYYY HH24:MI:SS')";
ORA-00285: TIME not given as a string constant
SQL> recover database until time '17-02-2009 06:27:00';
ORA-01861: literal does not match format string
SQL> recover database until time 'to_date"('17-02-2009 06:27:00','DD-MM-YYYY HH24:MI:SS')"';
ORA-01841: (full) year must be between -4713 and +9999, and not be 0
Thank you.
Hello..
TRY: -.
DATABASE TO RECOVER UP TO THE HOUR ' 2009-02 - 17:06:27:00';
HTH
Anand
Tags: Database
Similar Questions
-
Orders series does not work with the string constant
I have a single serial device, I used. The device requires no handshake. Simply send a command to the device and the device responds. I modified the example labview for simple serial communication and that works when I enter the chain command and click the button to send the command to the device. But when I tried to put the same example of communication series in a simple state machine where I replace the chain control on the front panel with a string constant on the scheme that the standard equipment does not respond. Where do I go awry with the constant string and the state machine?
Thank you
Control of the working channel is \-codes display, while the constant diagram is in normal display. Once you pass the constant \-codes diagram, you will see that it is in fact "/ 1ZR\\r\\n". Switch to \-codes, re - enter the text you want and see if things improve.
-
SQLERRM: ORA-01861: literal does not match the format string
Here's what I want to do.
Select to_char (to_date (estimatedshipdate, 'DD-MM-AA'), 'YDDD')
of cram_stg
where estimatedshipdate = 14 January 11 ';
TO_CHAR (TO_DATE(ESTIMATEDSHIPDATE,'MM-DD-YY'), 'YDDD')
-----------------------------------------------------
1014
1 selected lines
I want to convert the shipping date is DD-MM-AA YDDD, but in my program:
v_est_ship_date varchar2 (10);
ESTIMATEDSHIPDATE VARCHAR2 (10) in a TABLE
v_est_ship_date: = to_char (to_date (CRAM_PTCLICK_REC.estimatedshipdate, 'DD-MM-AA'), 'YDDD');
I get this problem
SQLERRM: ORA-01861: literal does not match the format string
I want to assign the result of the function to_char to v_ext_ship_date. What I am doing wrong? Thank you.Hello
It's just one of the reasons for which the storage of dates as VARCHAR2 columns is a bad idea.
Apparently, some (maybe just one) this column values is not the right format. To find malformed (the kind that cause the ORA-01861) values, you can do something like this:SELECT primary_key , estimatedshippingdate FROM cram_stg WHERE TRANSLATE ( estimatedshippingdate , '012345678' , '999999999' ) != '99-99-99' ;
It intercepts any mistakes as the 32nd day of the month (let alone ' 02-29-11'). See the next thread of a way to do this:
Re: How to select valid dates only -
given the date and time not set when computer starts. also have a problem with typing
by turning on my computer, sometimes it lights up at all, and then I try several times so that it lights up. When switching on the main screen, it says error due to the date and time not set and puts my computer starts in safe mode. When I am that I then have to set the date and time again. Why this keep happening?
on my second question that I have is when I type an email or anything, my writing will just jump on another line and start typing in the middle of other sentences. Why is it jump around like that?
You may have a failed in your motherboard CMOS battery.
It's a battery power supply NET, size piece that keeps your system settings when your computer is off.
They cost about $5 to replace.
http://www.computerhope.com/issues/ch000239.htm
How to replace the CMOS battery in the above link info.
See you soon.
Mick Murphy - Microsoft partner
-
Constant string BD is safe to use a password internal unchangable?
Hi all
reasons to restrict access to some of my program ini files, I intend to use the password of the ZIP files coming with the tools of librarians openG and so save these critical files in a ZIP protected archive. Of course, some time when running the initialization of the program I have to give uncompress works the password required to read the contents of these files. Now my question is whether the use of a constant of simple string on the block diagram would be safe enough to use here.
I tried to find a constant text string in the saved VI file using Notepad ++ test but could not. So far so good. Is there a simple way to get any of the VI file constant string value without using LabVIEW and the opening of the comic (which would of course be PW protected so)? The necessary level of security is really not high, I want to just exclude any obvious loophole that I might not be aware of here.
Of course - then that ZIP archive remains open for read access at initialization, anyone can read the files from the hard drive. But it would take a number of "criminal intent" I really don't want to guarantee against the application.
Thanks for the thoughts that anyone could share.
It depends on your needs. Looks like you don't need to be impossible to crack you want just a security level. For this the zip method is probably fine, but keep in mind that the decompress function is as you said, a loophole in there self because the files will be unzipped at any given time.
Another solution is to write your files in binary form. If you know the structure of your data you will be able to understand it. It gets a little pain that you need to update your data type but a def type helps out with that.
EDIT: to also answer your question, I never could find anything like a string on a block diagram, my analysis constant a VI on the disk.
-
Hello
In our society, we have oracle server on Suse Linux with two instances TETA and TETA201.
One day on a server broke down, because there is no free space due growing files 'archivelog.
After that I manually deleted several older archivelog files, but after the reboot, the server error occurs when connecting to the database:
"ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux x86_64 error: 2: no such file or directory
Process ID: 0
"Session ID: serial number 0: 0"
$ ORACLE_SID is set to TETA, if export it to TETA201 connection works correctly
Oracle service startup there is no errors but only one instance is running TETA201 works correctly
#############################################################################
# Beginning of start O R A C L E section #.
#############################################################################
PARAMETERS from/etc/sysconfig/oracle
-Set the Oracle kernel settings: Yes
-Start the Oracle Listener: Yes
-Start the Oracle database: Yes
-Start the Oracle Web server: no
-Start Oracle EManager: Yes
-Start Oracle iSQLPLUS Manager: Yes
-Start Oracle Agent: no
-Start Oracle Internet Filesystem: no
-Run Oracle Directory Manager: no
Can not find required file: isqlplusctl - START_ORACLE_DB_ISQLPLUS setting = no
Undefinied Agent Oracle or not properly configured. Please check.
Setting the parameters of the kernel for Oracle, see the file
/ etc/sysconfig/Oracle of explanations.
Shared memory: SHMMAX = SHMMNI(5) 3294967296 = 4096 SHMALL 2097152 =
Semaphore values: SEMMSL = 1250 SEMMNS = 32000 SEMOPM = 100 SEMMNI = 256
Other values: FILE_MAX_KERNEL = 131072 IP_LOCAL_PORT_RANGE = 1024 65000
RMEM_DEFAULT = 4194304 WMEM_DEFAULT = 262144 = 4194304 = 262144 WMEM_MAX RMEM_MAX
Huge pages:
ULIMIT values: MAX_CORE_FILE_SIZE_SHELL = unlimited
FILE_MAX_SHELL = 65536 = 16384 PROCESSES_MAX_SHELL
Kernel defined for Oracle parameters: fact
-Start listener... done
+ From databases...
Start entry for SID TETATEST to /oracle/product/11.2.0/dbhome_1/ inskippedratab
Database instance "TETA" of treatment: save the /oracle/product/11.2.0/dbhome_2/startup.log file
Instance of database 'TETA201' of treatment: save the /oracle/product/11.2.0/dbhome_1/startup.log file
Status of Oracle database start: fact
-Starting Apache... unused
-From unused application server
-From Application Server Console... unused
-Start of Agent... unused
-From Enterprise Manager...
DB console departure for TETA starting DB Console for TETA201 done
-Jumped from iSQLPLUS Manager...
-From... unused Oracle Internet file system
-From Oracle Internet Directory... unused
#############################################################################
# End of O R A C L E section #.
#############################################################################
#############################################################################
# End of O R A C L E section #.
#############################################################################
/Oracle/product/11.2.0/dbhome_1/startup.log
SQL * more: Production of the version 11.2.0.3.0 on Mon Jan 18 11:43 2016
Copyright (c) 1982, 2011, Oracle. All rights reserved.
SQL > Polaczono.
SQL > ORACLE Instancja zostala zamknieta.
SQL > Odlaczono od Oracle Database 11g Release 11.2.0.3.0 - 64 bit Production
SQL * more: Production of the version 11.2.0.3.0 on Mon Jan 18 11:43:01 2016
Copyright (c) 1982, 2011, Oracle. All rights reserved.
SQL > connect to an idle instance.
SQL > ORACLE instance started.
Total System Global Area 1043886080 bytes
Bytes of size 2234960 fixed
603981232 variable size bytes
432013312 of database buffers bytes
Redo buffers 5656576 bytes
Baza danych zostala zamontowana.
Baza danych zostala otwarta.
SQL > Odlaczono od Oracle Database 11g Release 11.2.0.3.0 - 64 bit Production
/Oracle/product/11.2.0/dbhome_2/bin/DBSTART: warm welcome of the instance 'TETA201' database has started.
/Oracle/product/11.2.0/dbhome_2/startup.log
PON sty 18 11:42:52 THIS 2016
SQL * more: Production of the version 11.2.0.4.0 on Mon Jan 18 11:42:52 2016
Copyright (c) 1982, 2013, Oracle. All rights reserved.
SQL > connect to an idle instance.
SQL > ORACLE instance started.
Total System Global Area 4175568896 bytes
Bytes of size 2259840 fixed
1409287296 variable size bytes
2751463424 of database buffers bytes
Redo buffers 12558336 bytes
Baza danych zostala zamontowana.
ORA-03113: end of file on communication channel
Māju ID: 10080
Sesji ID: 33, serial number: 3
SQL > Odlaczono od Oracle Database 11g Release 11.2.0.4.0 - 64 bit Production
/Oracle/product/11.2.0/dbhome_2/bin/DBSTART: hot "TETA" database instance started.
Linux: ~ # service oracle State
#############################################################################
# Begin State O R A C L E section #.
#############################################################################
Kernel parameters
Shared memory: SHMMAX = SHMMNI(5) 3294967296 = 4096 SHMALL 2097152 =
Semaphore values: SEMMSL, SEMMNI, SEMMNS, SEMOPM: 1250 32000 100 256
Database Instances
TETA instance is out of service (autostart: Y)
Instance of TETATEST is broken (autostart: N)
TETA201 of the instance is declining (autostart: Y)
AMT-listener: to the top
Webserver (Apache httpd): low (0 process)
List of processes by user oracle:
PID TTY STAT TIME COMMAND
9855? SSL 0:00 /oracle/product/11.2.0/dbhome_2/bin/tnslsnr LISTENER
10128? SS 0:00 ora_pmon_TETA201
10130? SS 0:00 ora_psp0_TETA201
10132? SS 0:00 ora_vktm_TETA201
10136? SS 0:00 ora_gen0_TETA201
10138? SS 0:00 ora_diag_TETA201
10140? SS 0:00 ora_dbrm_TETA201
10142? SS 0:00 ora_dia0_TETA201
10144? SS 0:00 ora_mman_TETA201
10146? SS 0:00 ora_dbw0_TETA201
10148? SS 0:00 ora_lgwr_TETA201
10150? SS 0:00 ora_ckpt_TETA201
10152? SS 0:00 ora_smon_TETA201
10154? SS 0:00 ora_reco_TETA201
10156? SS 0:00 ora_mmon_TETA201
10158? SS 0:00 ora_mmnl_TETA201
10166? SS 0:00 ora_qmnc_TETA201
10338? SS 0:00 ora_cjq0_TETA201
11195? SS 0:00 ora_q000_TETA201
11197? SS 0:00 ora_q001_TETA201
#############################################################################
# End of O R A C L E section #.
#############################################################################
Help, please
RMAN target /.
RMAN > startup mount;
RMAN > overlap archivelog all;
RMAN > delete archivelog expired;
RMAN > alter database open;
-
Hello world
I'm developing a portal with Jdev 11.1.1.6.0 webcenter application v and Oracle 11 g database.
In the application, I have some electronic forms with interacts with the database. In my local computer, the forms run correctly, without exception. But after that I deployed a server weblogic on a remote machine, I try to access the forms. the application server throws me:
ORA-01005: password none given; logon denied.
java.lang.NullPointerException
Locally, there is no problem, but the remote server 'Impossible '.
Note: The remote server contains cluster. It is about my problem, I don't know.
I searched the forum. There are a few messages with the same subject, but it did not help me. Anyone help me on this problem?
Help will be appreciated.
Yacoubahave you changed the data source in AppModule?
Since Jdbc url of jdbc data source?If not-> App open adf-> module app go go-> right click Choose module app-> configurations of-> click on modify-> change jdbcURL Jdbc DataSource
and in the corresponding column, it will be like com/env/etc just change your server Eg JNDI name: jdbc/webcenter/PortalAnd make sure that the data source that you select here is available in the Remote Machine
-
ORA-16783: could not resolve the deficit for the database
I have two databases emadb and emadbdg, governed by Data Guard. emadb is currently principal. emadbdg is currently pending physical.
ORA16783 - cannot solve the gap for the database is one I think, is the origin of the problem. Anyone can help solve the problem below. Logs attached.
Output of data protection
DGMGRL > show detailed configuration
Configuration - DRSolution
Protection mode: MaxAvailability
Databases:
emadb - primary database
Error: ORA-16825: multiple errors or warnings, including failover quick start or warnings, errors detected for the database
emadbdg - (*) Physical standby database
WARNING: ORA-16817: configuration not synchronized rapid failover
(*) Fast failover target
Properties:
FastStartFailoverThreshold = "30"
OperationTimeout = "30"
FastStartFailoverLagLimit = "30"
CommunicationTimeout = "180"
FastStartFailoverAutoReinstate = 'TRUE '.
FastStartFailoverPmyShutdown = "FALSE".
BystandersFollowRoleChange = "ALL".
Fast-Start Failover: ENABLED
Threshold: 30 seconds
Target: emadbdg
Observer: emarn1
Offset limit: 30 seconds (do not use)
Primary closure: FALSE
Auto-Rétablir: TRUE
The configuration status:
ERROR
DGMGRL > see the detailed database emadb
Database - emadb
Role: PRIMARY
State of destination: TRANSPORT-WE
Occurrence (s):
emadb
Database error (s):
ORA-16783: could not resolve the deficit for the database emadbdg
Warning (s) of database:
ORA-16817: unsynchronized fast-start failover configuration
Properties:
DGConnectIdentifier = "emadb.
ObserverConnectIdentifier = "
LogXptMode = "SYNCHRONIZE".
DelayMins = '0'
Binding = "optional."
MaxFailure = '0'
MaxConnections = '1'
ReopenSecs = "300"
NetTimeout = "30"
RedoCompression = "DISABLE."
LogShipping = 'ON '.
PreferredApplyInstance = "
ApplyInstanceTimeout = '0'
ApplyParallel = 'AUTO '.
StandbyFileManagement = 'AUTO '.
ArchiveLagTarget = '0'
LogArchiveMaxProcesses = "4"
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = 'emadbdg, emadb '.
LogFileNameConvert = "/ opt/app/oracle/oradata/emadbdg, / opt/app/oracle/oradata/emadb '"
FastStartFailoverTarget = "emadbdg".
InconsistentProperties = "(monitor).
InconsistentLogXptProps = "(monitor).
SendQEntries = "(monitor).
LogXptStatus = "(monitor).
RecvQEntries = "(monitor).
Nom_sid = "emadb.
StaticConnectIdentifier = ' (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=emarn1) (PORT = 1521)) (CONNECT_DATA = (SERVICE_NAME = emadb_DGMGRL) (INSTANCE_NAME = emadb)(SERVER=DEDICATED)))'
StandbyArchiveLocation = "/ opt/app/oracle/oradata/emadb/archivelog1.
AlternateLocation = "
LogArchiveTrace = '0'
LogArchiveFormat = '% t_%s_%r.dbf '.
TopWaitEvents = "(monitor).
State of the database:
ERROR
DGMGRL > see the detailed database emadbdg
Database - emadbdg
Role: STANDBY PHYSICS
State of destination: apply
Transport delay: (unknown)
Apply the Lag: (unknown)
Real-time query: OFF
Occurrence (s):
emadbdg
Warning (s) of database:
ORA-16817: unsynchronized fast-start failover configuration
Properties:
DGConnectIdentifier = "emadbdg".
ObserverConnectIdentifier = "
LogXptMode = "SYNCHRONIZE".
DelayMins = '0'
Binding = "OPTIONAL."
MaxFailure = '0'
MaxConnections = '1'
ReopenSecs = "300"
NetTimeout = "30"
RedoCompression = "DISABLE."
LogShipping = 'ON '.
PreferredApplyInstance = "
ApplyInstanceTimeout = '0'
ApplyParallel = 'AUTO '.
StandbyFileManagement = 'AUTO '.
ArchiveLagTarget = '0'
LogArchiveMaxProcesses = "4"
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = 'emadb, emadbdg '.
LogFileNameConvert = "/ opt/app/oracle/oradata/emadb, / opt/app/oracle/oradata/emadbdg '"
FastStartFailoverTarget = "emadb.
InconsistentProperties = "(monitor).
InconsistentLogXptProps = "(monitor).
SendQEntries = "(monitor).
LogXptStatus = "(monitor).
RecvQEntries = "(monitor).
Nom_sid = "emadbdg".
StaticConnectIdentifier = ' (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=emarn2) (PORT = 1521)) (CONNECT_DATA = (SERVICE_NAME = emadbdg_DGMGRL) (INSTANCE_NAME = emadbdg)(SERVER=DEDICATED)))'
StandbyArchiveLocation = "/ opt/app/oracle/oradata/emadbdg/archivelog1.
AlternateLocation = "
LogArchiveTrace = '0'
LogArchiveFormat = '% t_%s_%r.dbf '.
TopWaitEvents = "(monitor).
State of the database:
WARNING
DGMGRL >
DGMGRL >
DGMGRL >
DGMGRL >
DGMGRL > outputAlex Antony Samantha wrote:
Head nodeSQL> archive log list Database log mode Archive Mode Automatic archival Enabled Archive destination /opt/app/oracle/oradata/emadb/archivelog1 Oldest online log sequence 65 Next log sequence to archive 67 Current log sequence 67 SQL> select thread#,max(sequence#) from v$archived_log group by thread#; THREAD# MAX(SEQUENCE#) ---------- -------------- 1 925
It is misleading to the column sequence, sequence of real number is 65 series, but it's beyond. Have you restored any old backup with the incarnation?
When you perform incremental backups, is the current_scn in the two primaries and Eve was balanced?And the sequence number * 29 * is transferred from the primary to the standby (or) he has been removed from the primary?
Perform the two methods.(1) SQL > alter system set log_archive_dest_state_2 = 'reporter ';
(2) conduct 3-4 log switches
(3) SQL > alter system set log_archive_dest_state_2 = 'enable '.and displays the alert log database and backup files.
And you mentioned the hostname in the entries of the listener, if this entry is added in/etc/hosts? otherwise you can use the IP address instead of the host name and then reload the listener.second method
(1) copy archives missing from primary sequence of 29
(2) place manually and then perform a recovery
or
(3) retrieve manuallyAnd update with your conclusions after all these lists.
Thank you. -
ORA-01034: ORACLE not available &; ORA-00838: specific MEMORY_TARG value
Hi all
I'm trying to load data into the database. And I was asked to run the commands below:
ALTER system set sga_target = 1365M scope = spfile;
but I got error below...
ALTER system set pga_aggregate_target = 1365M scope = spfile;
ALTER system set olap_page_pool_size is 0 scope = spfile;.
change all of the "_olap_parallel_update_small_threshold" system is 2147483647 scope = spfile;.
change all of the "_olap_page_pool_hi" system is 30 scope = spfile;.
ALTER system set job_queue_processes is 5 scope = spfile;.
stop immediately;
start-up
SQL > startup;
what should I do to get my database without losing my data?
ORA-00838: MEMORY_TARGET determined value is too small, must be at least 2
736 M
SQL > show sga parameter
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
Thanks for your time.user12296343 wrote:
Thanks for your reply, I get following error.SQL > create spfile from pfile;
Created file.
SQL > startup
ORA-27102: out of memory
OSD-00022: additional error information
S/O-error: (OS 8) not enough memory is available to process this command.What should I do now? I have 3 GB of ram and I cannot increase it. What is the default values? I would like to replace their return...
Thanks for your time...
alert_SID.log file show settings whose default value used to start the DB.
If you can find in this file of a start of the DB which took place before today,
Then you can use these lines, values, the parameters to make new pfile & then a new spfile.
In the future, you should ALWAYS do a manual copy of the spfile, before changing anything -
I get the followiing error in my main document class:
«1046: type was not found or was not a compilation constant: TimerEvent.»
It shows online 47 and 54 (in red below). Any help would be appreciated. BTW, this is my first time creating a class of main document since its release to class files! :
package
{
STATEMENTS IMPORT *.
import flash.display.MovieClip;
import com.greensock.TweenLite;
import flash.utils.Timer;
SerializableAttribute public class Main extends MovieClip
{
//***************** Variables ***************************
/ * private var appStoreURL:URLRequest = new URLRequest ("http://itunes.apple.com/us/artist/quackenworth/id518210161");
private var facebookURL:URLRequest = new URLRequest ("http://www.facebook.com/quackenworth");
private var twitterURL:URLRequest = new URLRequest ("http://www.twitter.com/quackenworth") ;*/
private var MainScene:Main = new Main();
private var PopUp_MoreApps:MoreApps_mc = new MoreApps_mc();
private var PopUp_About:About_mc = new About_mc();
SPLASH SCREEN *.
private var mc_timerSplash:Timer;
private var splashScreen:mcSplashScreen;
//*****************CONSTRUCTOR CODE ***********************************************************************************
public void Main()
{
mc_timerSplash = new Timer (3000,1);
mc_timerSplash.addEventListener (TimerEvent.TIMER, StartTimer);
When the timer is finished, stop the timer;
mc_timerSplash.addEventListener (TimerEvent.TIMER_COMPLETE, timerCompleted);
splashScreen = new mcSplashScreen();
addChild (splashScreen);
splashScreen.x = stage.stageWidth / 2;
splashScreen.y = stage.stageHeight / 2;
mc_timerSplash.start ();
}
//*********** FUNCTIONS *********************************
private void timerCompleted(e:TimerEvent):void
{
mc_timerSplash.stop ();
mc_timerSplash = null;
}
private void StartTimer(e:TimerEvent):void
{
TweenLite.to (splashScreen, 1, {alpha: 0, onComplete: SplashScreen});
}
private void SplashScreen (): void
{
removeChild (splashScreen);
addMainScene();
}
private function addMainScene (): void
{
addChild (MainScene);
MainScene.x = 489;
MainScene.y = 350;
TweenLite.from (MainScene.wbbIntro_mc,.5, {alpha: 0});
TweenLite.from (MainScene, 1, {alpha: 0});
TweenLite.to (MainScene.girls_mc, 1, {y: 395, delay: 3.});
TweenLite.to (MainScene.boys_mc,.5, {y: 396, delay:. 6});
TweenLite.to (MainScene.Joe_mc,.5, {y: 339, delay: 1});
TweenLite.to (MainScene.Paul_mc,.5, {y: 322, delay: 1.2});
}
private function removeMainScene (): void
{
removeChild (MainScene);
TweenLite.to (MainScene.girls_mc,.1, {y:690});})
TweenLite.to (MainScene.boys_mc,.1, {y:693});})
TweenLite.to (MainScene.Joe_mc,.1, {y:636});})
TweenLite.to (MainScene.Paul_mc,.1, {y:619});})
}
}
}
Add a line to import the TimerEvent class:
import flash.events.TimerEvent;
-
ORA-00439: feature not enabled: Dump file during expdp Data Compression
My version of the database is:
SQL > select * from v version $;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11 g Release 11.2.0.1.0 - 64 bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
AMT for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL > show the compatible parameter
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
compatible string 11.2.0.0.0
However when I tried to do this:
Directory = data_pump_dir dumpfile = prod_schema.dmp patterns = expdp system has, b logfile = prod - schema.log compression = all >
Export: Release 11.2.0.1.0 - Production Thu Jan 12 08:39:48 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Password:
Connected to: Oracle Database 11 g Release 11.2.0.1.0 - 64 bit Production
ORA-39002: invalid operation
ORA-00439: feature not enabled: Dump file data Compression
This is on linux.
Thank youuser569151 wrote:
I see. So how can I made a dump of smaller export? right now it is about 30g.If you want only to save disk space, you can compress the dump file with an application of operating system when the dump is complete.
Otherwise, you can check the exported data, if you can exclude all the data from the dump.
ITI
Johan -
ORA-01849: time must be between 1 and 12
Hi all
SELECT SYSDATE FROM DUAL;
Returns
MAY 11, 2011 17:33
SELECT * FROM stables of TIMESTAMP TO_TIMESTAMP (May 11, 2011 14:30 '); Returns
ORA-01849: time must be between 1 and 12
Any idea?
KaiHi, Kai,
KaiS wrote:
Hi allSELECT SYSDATE FROM DUAL;
Returns
MAY 11, 2011 17:33
SELECT * FROM stables of TIMESTAMP TO_TIMESTAMP (May 11, 2011 14:30 '); Returns
ORA-01849: time must be between 1 and 12
Always pass arguments (at least) 2 to TO_TIMESTAMP, like this:
TO_TIMESTAMP ( '11-MAY-2011 14:30:00' , 'DD-MON-YYYY HH24:MI:SS; )
The second argument tells TO_TIMESTAMP what format you use. If you don't pass it, then TO_TIMESTAMP will use a default format, which may not be what you want or expect.
-
ORA-14456: can not rebuild the index on a temporary table
change the IND_DEBITDOCUMENT TABLESPACE INDEXDATA index rebuild
*
ERROR on line 1:
ORA-14456: can not rebuild the index on a temporary table
why it is given such error?
Thanks in advance.This information is always kept to user_ | all_ | dba_ tables, in this case in the temporary column.
Obvious, isn't it?
---------
Sybrand Bakker
Senior Oracle DBA -
ORA-00984: column not allowed here, when you try to use a default UDF
I am wanting to create a table that has a default value of a user-defined function, and because this default is intended to be used in a few different places so I would use a function rather than in the table definition.
This is my current code that works very well:
but I would get something similar to this work:CREATE TABLE DEPT_HIST ( DEPTNO NUMBER(2) not null, DNAME VARCHAR2(14), LOC VARCHAR2(13), SQL_ACTV_C CHAR(1) not null, EFFT_STRT_S TIMESTAMP(6) default SYSTIMESTAMP not null, EFFT_END_S TIMESTAMP(6) default TO_TIMESTAMP('9999/12/30 00:00:00.000000', 'YYYY/MM/DD:HH24:MI:SS.FF6') not null, DELT_F CHAR(1) default 'N' not null );
but I get an error of:CREATE OR REPLACE FUNCTION EOT RETURN timestamp IS Result timestamp; BEGIN RETURN (TO_TIMESTAMP ('9999/12/30 00:00:00.000000', 'YYYY/MM/DD:HH24:MI:SS.FF6')); END EOT; / select eot from dual; EOT --------------------------------------------------------------------------- 30/DEC/99 12:00:00.000000000 AM CREATE TABLE DEPT_HIST ( DEPTNO NUMBER(2) not null, DNAME VARCHAR2(14), LOC VARCHAR2(13), SQL_ACTV_C CHAR(1) not null, EFFT_STRT_S TIMESTAMP(6) default SYSTIMESTAMP not null, EFFT_END_S TIMESTAMP(6) default EOT not null, DELT_F CHAR(1) default 'N' not null );
Any ideas? I guess I could use a trigger but not exactly what I'm after.EFFT_END_S TIMESTAMP(6) default EOT not null, * ERROR at line 8: ORA-00984: column not allowed here
Hello
Sorry; No function defined by the user in the DEFAULT clause.
From SQL, under "CREATE TABLE Statement" language manual
http://download.Oracle.com/docs/CD/B28359_01/server.111/b28286/statements_7002.htm#sthref7119Restriction on default column values
A DEFAULT expression cannot contain references to the functions PL/SQL or other columns, the nickname CURRVAL, NEXTVAL, LEVEL, PRIOR and ROWNUM, or date constants that are not completely specified.I wouldn't use a trip just for that. If you need a trigger for other reasons, then maybe you can include the definition of this column in the trigger, too, but, in general, avoid triggers when there is an alternative.
-
Count down to a specific time (not midnight)
Hello all;
I quickly do a countdown to a Web site that account down to a specific date & time (not midnight). I need like may 4, 2011, at 09:10.
I used a tutorial to create a timer that counts down to midnight, but necessary change to the countdown at a time accurate as midnight.
Here's the code. Can someone help me change the code below. Thank you.
Tim
var today: Date = new Date();
Those of var = today.getFullYear ();
currentTime var = today.getTime ();
var targetDate:Date = new Date (currentYear, 1, 12);
var Date_cible = targetDate.getTime ();
If (Date_cible < = 0) {}
gotoAndStop (3);
}
var Date_cible = timeLeft - currentTime;
var s = Math.floor (timeLeft/1000);
var min = Math.floor (sec/60);
var h = Math.floor (minutes/60);
var days = Math.floor (hrs/24);
sec = String (s % 60);
If (sec.length < 2) {}
s = '0' + seconds;
}
min = String (min % 60);
If (min.length < 2) {}
min = "0" + min;
}
h = String (24 hrs %);
If (hrs.length < 2) {}
h = "0" + hrs;
}
days = String (days);
var counter: String = days + ":" + h + ":" + min + ":" + seconds;
time_txt. Text = counter;I have not watched the rest of the code, but if you say it works, then all you really need to do is to settle the arguments of Date_cible.
The constructor for a Date object is...
Date (year, month, date, hour, minutes, seconds, milliseconds)So just fill out the data you need instead of what you have...
var targetDate:Date = new Date (year, month, date, hour, minute, seconds, milliseconds);
Maybe you are looking for
-
My Yahoo toolbar does not work with V.4
After upgrading to V.4 my Yahoo toolbar is missing from the buttons and I can not add. Also the search function no longer works. Also my RoboForm toolbar and functions are more functional. Internet Explorer still works very well for them. I tried to
-
I went through my computer while trying to get answers and there is not everything. I have a Windows Vista and I think it has something to settle. My computer is two weeks old and do not appear when I click on the button to the right, the options to
-
Computer is "close the program" sound randomly by itself
HP with Vista: an e-mail account recently got hi-jacked and sent spam, disguised as me. Add Microsoft Security and changed passwords so that never stopped. Microsoft Security scan said all good but I get the "close program" ringtone randomly when not
-
Windows 7 build 7600, windows 7 is not genuine. black screen
Separated from this thread. Diagnostic report (1.9.0027.0):-----------------------------------------Validation of Windows data--> Validation code: 50Validation caching Code online: n/a, hr = 0xc004f012Windows product key: *-* - 788W3 - H689G-6P6GTThe
-
Why getmultiplevalues is more efficient compared to getattributevalues?
Hi allI know that this may be a very basic question but I need some clarification on the below:Step 1: < assetset:setasset name = "myObj" c =' < % = ics. GetVar ("c") % > ' cid =' < % = ics. GetVar ("cid") % > ' / >Step 2: name = "myObj" listvarname