DEFAULT CONSTRAINT with the INSTRUCTION BOX - Oracle 11.2.0.3
Is it possible to create a default constraint on a table based on conditional logic.
For example:
CREATE TABLE TEST_T (NUMBER OF DEPT_NO,
GRANT_FL CHAR (1)
);
GRANT_FL DEPT_NO
10 Y
10 Y
0 N
I want the DEPT_NO to be filled with a default value of 10 only when GRANT_FL = 'Y' otherwise the value to 0.
I can do that with an after Insert trigger, but would be better if this can be done via the case statement that sets a default value.
Thank you very much!
Kevin
Hi, Kevin,
Sorry, I don't think that there is a way to do it with the DEFAULT options.
Kevin_K wrote:
... I can do this with an after Insert trigger...
I think that a trigger is your best bet, but a BEFORE INSERT trigger would be much simpler and more effective? An INSTEAD OF trigger is another possibility.
Tags: Database
Similar Questions
-
update with the instruction box
Hello
I need to do something like this:
update my_table set (prelucrat, err) = (select case when r.id is not null then ('D', null) else ('N', 'Nu exista persoana cu marca '||r.marca) ) where marca = r.marca and ctiserver = r.ctiserver
But I got an error 'missing right parenthesis.
'r' is a cursor variable, so this update is nested in one 'for r in (...) ". loop. "
What I am doing wrong? Is it possible to update both the two columns, then select in this use case?
Thank you.
for r in loop (select...)
Update my_table
Set prelucrat = nvl2(r.id,'D','N')
, err = nvl2 (r.id, null, 'Nu exista person cu marca' | r.marca)
where marca = r.marca
and ctiserver = r.ctiserver;
end loop;
----
Ramin Hashimzade
-
Problem with variable referencing of presentation (KEY Date) in the instruction box
Hello
I'm trying to reference variables of presentation created on a Date column in the instruction box to one of the columns in the query, as shown below:
-case when '-citation details. "" "Created" between ' @{of} {1999-1-1}' and ' @{until} {2999-1-1} "then"-quote Metrics. " "" end of number of citations.
I m getting a view displays error message with the following error message:
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 17001] Oracle error code: 1861, message: ORA-01861: literal does not match the format string to the call of the OIC OCIStmtExecute
SQL issued: SELECT "-quote Types '." Name of level 2 Saw_0', case when '-citation details. "" Created "between" 01/04/2009 ' and ' 15 / 04/2009 ' then '-quote Metrics ' "." number of citations"end saw_1"(unit) - CATALOGUE of quotes"WHERE"-citation details "". "" Date of creation"BETWEEN timestamp ' 2009-04-01 00:00:00 ' timestamp AND ' 2009-04-15 00:00:00 ' ORDER BY saw_0
When I created the prompt on the date field, I put the following in the command prompt:
Cast ("-time".) Day)
When I apply a filter on the query using these variables, it works fine.
If anyone has faced this kind of question earlier and have a resolution, please help me.
Thank you
KitengeHello.
Select the double - A NON-VALIDE MONTHS TO_DATE('1999-1-1','mm/dd/yyyy')
Try this:
OLD: EVALUATE ('TO_DATE (%1, %2)', ' @{of} {1999-1-1} ", mm/dd/yyyy)
NEW: EVALUATE ('TO_DATE (%1, %2)', ' @{of} {01/01/1999} ", mm/dd/yyyy)and
OLD: EVALUATE ('TO_DATE (%1, %2)', ' @{of} {2999-1-1} ", mm/dd/yyyy)
NEW: EVALUATE ('TO_DATE (%1, %2)', ' @{of} {1, 1, 2999} ", mm/dd/yyyy)and if not ok after that, after an error in query SQL of NQQuery.log.
Kind regards
Goran Ocko
http://108obiee.blogspot.com/
-
Update of dynamic Action with the text box
This goes along with: update records with the text box
APEX: 4.0.2
THEME: SAND
SERVER: Oracle-Application-Server-10g/10.1.3.1.0 Oracle-HTTP-Server
I created an example with more comments on the page:
workspace: stevendooley34
username: dev01
password: dev01
application: examples of Forum
page: update example
I've implemented just as I think it should be put in place, but records only updates by clicking on my Refresh"" button.
Keep in mind that the example is found in the apex 4.2.5 but I will implement this in 4.0.2.
Thank you
Steven
Hi Steven,
I think the main thing that was missing was adding the elements used in the PL/SQL "Page to go".
The reason this is necessary is so APEX know what values of point on the browser should be sent (as part of the AJAX call) to the browser.
IF you had all the elements that must be returned to the screen, then you will use the 'Page field items to return.
I've also corrected a few things, P6 instead of P6 and P6_SEARCH_TYPE instead of SEARCH_TYPE, but they were just small "bugs" in the example.
I also added another real action to refresh the report after the update.
Thank you
-Jorge
PS. I do not validate that your code works for multiple, but the first glance entries and a quick test, it seems to work fine. I focused only on the DA.
-
default role with the password - reality check
I support the database for an application. We went from Oracle10 in Oracle11 9 months. Then recently, we applied the CPU of OCT.
The application administrator says they have a program which has recently stopped working and who worked after the Oracle11 upgrade.
The user of the application has a default role that has a password. Is this possible? A default role with a password. Would this be worked in any version of Oracle?Default role with the password is even available with Oracle XE. The default roles are enabled without the need for role password in Oracle 10.2:
SQL> drop user admin cascade; User dropped. SQL> drop user test cascade; User dropped. SQL> drop role rwp; Role dropped. SQL> select * from v$version; BANNER ---------------------------------------------------------------- Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product PL/SQL Release 10.2.0.1.0 - Production CORE 10.2.0.1.0 Production TNS for 32-bit Windows: Version 10.2.0.1.0 - Production NLSRTL Version 10.2.0.1.0 - Production SQL> SQL> create user admin identified by oraclexe; User created. SQL> grant create session, create table to admin; Grant succeeded. SQL> grant unlimited tablespace to admin; Grant succeeded. SQL> grant create user to admin; Grant succeeded. SQL> grant create role to admin; Grant succeeded. SQL> SQL> create user test identified by oraclexe; User created. SQL> grant create session to test; Grant succeeded. SQL> SQL> connect admin/oraclexe; Connected. SQL> create table t(x varchar2(10)); Table created. SQL> insert into t values('admin OK'); 1 row created. SQL> commit; Commit complete. SQL> create role rwp identified by oraclexe; Role created. SQL> grant all on t to rwp; Grant succeeded. SQL> grant rwp to test; Grant succeeded. SQL> SQL> connect test/oraclexe; Connected. SQL> select * from session_roles; ROLE ------------------------------ RWP SQL> select * from admin.t; X ---------- admin OK SQL> insert into admin.t values('test OK'); 1 row created. SQL> commit; Commit complete. SQL> select * from admin.t; X ---------- admin OK test OK SQL>
There has been changes between Oracle 10.2 and 11.2 because the same script fails to 11.2 unless the role is defined with the password:
SQL> drop user admin cascade; User dropped. SQL> drop user test cascade; User dropped. SQL> drop role rwp; Role dropped. SQL> select * from v$version; BANNER -------------------------------------------------------------------------------- Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production PL/SQL Release 11.2.0.1.0 - Production CORE 11.2.0.1.0 Production TNS for Linux: Version 11.2.0.1.0 - Production NLSRTL Version 11.2.0.1.0 - Production SQL> SQL> create user admin identified by oraclexe; User created. SQL> grant create session, create table to admin; Grant succeeded. SQL> grant unlimited tablespace to admin; Grant succeeded. SQL> grant create user to admin; Grant succeeded. SQL> grant create role to admin; Grant succeeded. SQL> SQL> create user test identified by oraclexe; User created. SQL> grant create session to test; Grant succeeded. SQL> SQL> connect admin/oraclexe; Connected. SQL> create table t(x varchar2(10)); Table created. SQL> insert into t values('admin OK'); 1 row created. SQL> commit; Commit complete. SQL> create role rwp identified by oraclexe; Role created. SQL> grant all on t to rwp; Grant succeeded. SQL> grant rwp to test; Grant succeeded. SQL> SQL> connect test/oraclexe; Connected. SQL> select * from session_roles; no rows selected SQL> select * from admin.t; select * from admin.t * ERROR at line 1: ORA-00942: table or view does not exist SQL> insert into admin.t values('test OK'); insert into admin.t values('test OK') * ERROR at line 1: ORA-00942: table or view does not exist SQL> commit; Commit complete. SQL> select * from admin.t; select * from admin.t * ERROR at line 1: ORA-00942: table or view does not exist SQL> SQL> set role rwp identified by oraclexe; Role set. SQL> select * from session_roles; ROLE ------------------------------ RWP SQL> select * from admin.t; X ---------- admin OK SQL> insert into admin.t values('test OK'); 1 row created. SQL> commit; Commit complete. SQL> select * from admin.t; X ---------- admin OK test OK SQL>
10.2 security Guide says:
If you have a role that is protected by a password, you can activate or disable the role by providing the correct password for the role in a statement of the VALUE. However, if the role is rendered a default and active role at the time of the connection, then the user should not enter a password.
11.1 and 11.2 Secuirty Guide says:
If a user is given a role that is protected by a password, you can activate or disable the role by providing the correct password for the role in the ROLE DEFINED declaration. Cannot you authenticate a role authenticated by logon password, even if you add it to the list of default roles. You must enable it explicitly to the ROLE DEFINED statement by using the required password.
Edited by: P. Forstmann on 20 Feb. 2010 10:28
-
Distinct count in the instruction box
-------------------------------------------------------------------------------------------------
SELECT A.P_ID,
B.P_NAME,
C.P_DESC,
SUM (CASE
WHEN A.DATE BETWEEN TRUNC (ADD_MONTHS (LAST_DAY (SYSDATE),-4) + 1) AND ADD_MONTHS (LAST_DAY (TO_DATE (SYSDATE)),-1)
AND A.M_ID IS NOT NULL
THEN 1
0 OTHERWISE
END) AS COUNT,
SUM (CASE
WHEN A.DATE BETWEEN TRUNC (ADD_MONTHS (LAST_DAY (SYSDATE),-4) + 1) AND ADD_MONTHS (LAST_DAY (TO_DATE (SYSDATE)),-1)
AND A.M_ID IS NOT NULL
THEN COUNT (DISTINCT A.M_ID)
0 OTHERWISE
END) AS UNIQUE_COUNT, / * is not possible * /.
SUM (CASE
WHEN A.DATE BETWEEN TRUNC(SYSDATE,'YEAR') AND ADD_MONTHS (LAST_DAY (TO_DATE (SYSDATE)), - 1).
THEN A.AMT_1
0 OTHERWISE
END) AS TOTAL_AMT_1,
SUM (CASE
WHEN A.DATE BETWEEN TRUNC(SYSDATE,'YEAR') AND ADD_MONTHS (LAST_DAY (TO_DATE (SYSDATE)), - 1).
THEN A.AMT_2
0 OTHERWISE
END) AS TOTAL_AMT_2
FROM TABLE_A A,.
TABLE_B B,.
C TABLE_C
WHERE A.P_ID = B.P_ID
AND B.PT_ID = C.PT_ID
A.P_ID GROUP,
B.P_NAME,
C.P_DESC
----------------------------------------------------------------------------------------------------------
Hello
It is a simplified version of my request.
I'm doing 4 things here,
1. the County A.M_ID
2 County has separate .M_ID, is where I have a problem.
3 and 4. It is just the sum of 2 diff columns.
Note that the dates for the County and the amt are different and I can't hard-code the.
Can someone help me step of distinct count?
This query runs also a bit slow.
So all suggestions, comments are welcome.
Note: TABLE_A REB 700 million, TABLE_B 4 million and TABLE_c is located only 500 RECS
Thank you!Advantage of the fact that aggregate functions more ignore nulls, you could do something like:
SELECT a.p_id, b.p_name, c.p_desc, COUNT(CASE WHEN a.date BETWEEN TRUNC(ADD_MONTHS(LAST_DAY(sysdate),-4) + 1) AND ADD_MONTHS(LAST_DAY(TO_DATE(sysdate)),-1) AND a.m_id IS NOT NULL THEN m_id END) AS countall, COUNT(DISTINCT CASE WHEN a.date BETWEEN TRUNC(ADD_MONTHS(LAST_DAY(sysdate),-4) + 1) AND ADD_MONTHS(LAST_DAY(TO_DATE(sysdate)),-1) AND a.m_id IS NOT NULL THEN a.m_id END) AS unique_count, /* entirely possible */ SUM(CASE WHEN a.date BETWEEN TRUNC(sysdate,'YEAR') AND ADD_MONTHS(LAST_DAY(TO_DATE(sysdate)),-1) THEN a.amt_1 ELSE 0 END) AS total_amt_1, SUM(CASE WHEN A.DATE BETWEEN TRUNC(sysdate,'YEAR') AND ADD_MONTHS(LAST_DAY(TO_DATE(sysdate)),-1) THEN A.AMT_2 ELSE 0 END) AS TOTAL_AMT_2 FROM table_a a, table_b b, table_c c WHERE a.p_id = b.p_id and b.pt_id = c.pt_id GROUP BY a.p_id, b.p_name, c.p_desc
The two statements inside the COUNTY box return a.m_id or NULL. A simplified test case is:
SQL> WITH t as ( 2 SELECT 1 m_id, 9 dt FROM dual UNION ALL 3 SELECT 1 m_id, 6 dt FROM dual UNION ALL 4 SELECT 2 m_id, 9 dt FROM dual UNION ALL 5 SELECT 2 m_id, 6 dt FROM dual UNION ALL 6 SELECT 1 m_id, 5 dt FROM dual UNION ALL 7 SELECT 2 m_id, 5 dt FROM dual UNION ALL 8 SELECT null m_id, 9 dt FROM dual) 9 SELECT count(CASE WHEN dt BETWEEN 6 and 9 THEN m_id end) cid, 10 count(distinct CASE WHEN dt BETWEEN 6 and 9 THEN m_id end) cdid 11 FROM t; CID CDID ---------- ---------- 4 2
I'm not entirely sure that you really need the IS NOT NULL predicate a.m_id in the instructions BOX, but I left it for more security.
John -
You can change the font size using the form in the preview (not with the text box). Having also arrow drawing trouble in preview.
What problems are you having with the arrow? You go to Tools-> annotate-> arrow and an arrow appears. Then you can drag around the head and tail to make it to the desired location.
-
Definition of default font for the text box in Acrobat XI
Projects that I am working, I scan in all copies of documents I acquire and add at the bottom of the first page of the relevant information, that is, the source of recordings, volume, and page, using the tool text box (or typewriter).
In earlier versions of Acrobat, I could choose a font style once and it has carried over to any subsequent document, I proceeded. In Acrobat Pro XI, it always happens as Minion Pro and I need to change in Arial Black every time. Is there a way to define Arial Black as the default choice for the text box?
For what it's worth, I use Windows 8.
Thank you.
I came across a work-around for this for Acrobat Pro XI. It is a process in two steps and a little heavy, but it works.
First, go and add your text box and everything what you need text. After having done that, select all the text, then bring up a bar of properties of the text box text by placing your cursor in the toolbar area and select 'Properties Bar' top of the page, right click or simply press Ctrl + E. The properties of the text box bar will appear (floating, but not all the time). Let the selected text, and then change the font properties to what you need.
Secondly, deselect the text, select the border of the text box, make a right click and then select "Make current properties default" in the pop-up window. FYI, the property bar to the box text will be changed from a floating real estate bar at this time, so if you need to make more detailed changes, simply close the bar and back to Ctrl + E to call upwards and make other changes.
I use Windows 7 64-bit.
-
[JS CS5] problem with memory leak possible with the dialog box in the event handler
Hello
I'm having a very difficult problem.
I am attaching a script in a handler for a menu item, by using an installation script menu that I wrote based on one by Marc Autret. My version of the script menu installation attach a bunch of event handlers at the same time, to the actions of different menu.
What is the event handler, with that I have a problem is to prompt the user for a URL and then applies the URL as a hyperlink to the text selection, with our house style for the way in which the URL should look like.
The problem is the following:
1. all other installed menu actions work very well, except for this one.
2. the addition of URL script works fine, when you run it directly from the script menu.
3. the combination of #1 and #2 (using the script to add URL by function as an event handler in the Edit menu) blocks to InDesign. But it is only after the addition of URL script has finished and done what it was supposed to do!
4. when I comment on the section of the script URL adding user input, so that instead of saying
userInput = myDisplayDialog();
It is said
userInput = "http://thisworks.com"; // userInput = myDisplayDialog();
It works well as an event handler.
So obviously a problem with the dialog box, but only when adding URL script is executed as an event handler. My first guess is that this is some kind of memory leak, but I think I am following the model of. destroy() the way I saw it elsewhere.
Someone knows something like that before?
I can provide all relevant if necessary scripts, but they are quite complicated. The most important of them is the input of the user function. Here it is:
var myDisplayDialog = function( defaultText ) { var defaultText = defaultText || ""; var myDialog = app.dialogs.add({ name: "Type in a URL" }); var myOuterColumns = []; var myInnerColumns = []; var myOuterRows = []; var myBorderPanels = []; var myTextEditboxes = []; var myInput; myOuterColumns[0] = myDialog.dialogColumns.add(); myOuterRows[0] = myOuterColumns[0].dialogRows.add(); myBorderPanels[0] = myOuterRows[0].borderPanels.add(); myInnerColumns[0] = myBorderPanels[0].dialogColumns.add(); myInnerColumns[0].staticTexts.add({ staticLabel: "URL:" }); myInnerColumns[1] = myBorderPanels[0].dialogColumns.add(); myTextEditboxes[0] = myInnerColumns[1].textEditboxes.add({ minWidth: 300, editContents: defaultText ? defaultText : "http://" }); var myResult = myDialog.show(); var myInput = myTextEditboxes[0].editContents; myDialog.destroy(); if (myResult == false) { exit(); } return myInput; }
Hi Richard,
Unfortunately, there is no guarantee that the ScriptUI longer work.
Thake a peek here: http://forums.adobe.com/message/2881364
--
Marijan (tomaxxi)
-
Original title: What happens when I turn on my computer. Why? black screen with error box the instruction at 0x7468a9df referenced memory at 0 x 000000000. the momory could not be read.
When I turn on my computer, get this Windows logon error message: logon UI.exe
black screen with error box the instruction at 0x7468a9df referenced memory at 0 x 000000000. the momory could not be read.
Hello, help,
Unplug all devices - printer, speakers, digital camera, etc... The attempt to start start
You are able to go in Mode safe mode with networking? Restart and the logo of computer, start typing F8. See if you can download this file and run a scan complete for malware.
http://www.Microsoft.com/download/en/details.aspx?displaylang=en&id=16
If the auditor of applicable system files, run
Right-click on command prompt and select run as administrator
Type SFC/scannow
Note: there is a space between SFC and /scannnow
Press enter
It will take a few moments for the analysis to be performed. You can find the paper pressing the Windows flag key + r to open the run window
Type %windir%\Logs\CBS
Press OK
Search for ""impossible to repair corrupt files"Note all corrupted files that are not repaired."
Try to extract the file to your recovery CD. It is possible Logonui.exe has corrupted.
-
Need help with an instruction box with the data in the collection
It is located in the section source on my interactive form, my collection process works, but there is "-" where there should be a "$0.00 ' in the summary section.
There is a problem with my syntax of the case statement,
Select pending, records c002 c001, c003 case $ if no then ' $0.00 ' if not no c003 end other "$0.00 ' from apex_collections where collection_name ="Summary1»»"Hi Doug,.
The best way to handle this is with the NVL function, for example,
SELECT c001 Awaiting, c002 Records, NVL(c003,0) Dollars ...
and let the application manage the formatting of the field (which I suppose it's done for non-null values).
However, if you want to use the CASE statement, here is how it works:
SELECT CASE WHEN c003 IS NULL THEN 0 ELSE c003 END Dollars ...
-Jennifer
-
Hi Experts,
I have some confusion with the button Mode with cisco 2960/3560 switches.
I read on many forums and articles, but where things are not clear.
a place given 3 seconds and somewhere is given 7 or 10 seconds.
Qus1), what is the exact time to press/hold Mode button to perform two following tasks:
A. password recovery (according to my knowledge 3 sec) good or bad?
Configuration of the switch (start + run) would be safe
After the recovery of password? Yes or no
B. factory default (according to my knowledge 10 dry) good or bad?
I'm afraid, because if I press mode button more than 3 seconds, then
It will delete any configuration of cisco switch. Yes or no
Qus2) I want to recover the catalyst 2960/3560 switch password without
Start/run configuration to lose. That is my main concern.
Please tell me how to do this, what will be the time keeping Mode buttom
in a few seconds?
Qus3) which means this line
"If the password recovery mechanism is disabled in switch
then you will lose all the config.
This sentence has been given on this forum url
https://supportforums.Cisco.com/thread/140848
KS
Attach a terminal or PC with terminal emulation (for example, Hyper Terminal) port console switch.
Use the following terminal settings:
Bits per second (baud): 9600
Data bits: 8
Parity: None
Stop bits: 1
Flow control: Xon/Xoff
Note: For more information on the wiring and connection of a terminal to the console port, refer to connecting a Terminal to the Console Port of Catalyst switches.
Unplug the power cable.
The power switch and take it to the switch: command prompt:
2900XL, 3500XL, 2940, 2950, 2960, 2970, 3550, 3560, and 3750 switches of the series, to do this:
Press and hold the mode button located on the left side of the façade, while you reconnect the power cable from the switch.
2960, 2970 Release the Mode button when the SYSTEM LED flashes orange and then turns green. When you release the Mode button, the SYSTEM LED flashes green. 3560, 3750 Release the Mode button after about 15 seconds when the SYSTEM LED turns green. When you release the Mode button, the SYSTEM LED flashes green. The system was interrupted before the flash at the end file system initialization
loading the operating system software:
flash_init
load_helper
boot
switch:
Run the flash_init command.
switch: flash_init Initializing Flash... flashfs[0]: 143 files, 4 directories flashfs[0]: 0 orphaned files, 0 orphaned directories flashfs[0]: Total bytes: 3612672 flashfs[0]: Bytes used: 2729472 flashfs[0]: Bytes available: 883200 flashfs[0]: flashfs fsck took 86 seconds ....done Initializing Flash. Boot Sector Filesystem (bs:) installed, fsid: 3 Parameter Block Filesystem (pb:) installed, fsid: 4 switch: !--- This output is from a 2900XL switch. Output from !--- other switches will vary slightly.
Run the load_helper command.
switch: load_helper switch:
Question the dir flash: command.
Note: Be sure to type a colon ":" after the dir flash.
Appears in the file system of the switch:
switch: dir flash: Directory of flash:/ 2 -rwx 1803357 c3500xl-c3h2s-mz.120-5.WC7.bin !--- This is the current version of software. 4 -rwx 1131 config.text !--- This is the configuration file. 5 -rwx 109 info 6 -rwx 389 env_vars 7 drwx 640 html 18 -rwx 109 info.ver 403968 bytes available (3208704 bytes used) switch: !--- This output is from a 3500XL switch. Output from !--- other switches will vary slightly.
Type rename flash: flash: config.old config.text to rename the configuration file.
switch: rename flash:config.text flash:config.old switch: !--- The config.text file contains the password !--- definition.
Issue the boot command to boot the system.
switch: boot Loading "flash:c3500xl-c3h2s-mz.120-5.WC7.bin"...############################### ################################################################################ ###################################################################### File "flash:c3500xl-c3h2s-mz.120-5.WC7.bin" uncompressed and installed, entry po int: 0x3000 executing... !--- Output suppressed. !--- This output is from a 3500XL switch. Output from other switches !--- will vary slightly.
Enter "n" at the prompt to abort the initial configuration dialog box.
--- System Configuration Dialog --- At any point you may enter a question mark '?' for help. Use ctrl-c to abort configuration dialog at any prompt. Default settings are in square brackets '[]'. Continue with configuration dialog? [yes/no]: n !--- Type "n" for no. Press RETURN to get started. !--- Press Return or Enter. Switch> !--- The Switch> prompt is displayed.
At the switch prompt, type en to enter a mode.
Switch>en Switch#
Password recovery
Type rename flash: config.old flash: config.text to rename the configuration file with its original name.
Switch#rename flash:config.old flash:config.text Destination filename [config.text] !--- Press Return or Enter. Switch#
Copy the configuration file in the memory.
Switch#copy flash:config.text system:running-config Destination filename [running-config]? !--- Press Return or Enter. 1131 bytes copied in 0.760 secs Sw1#
The configuration file is now reloaded.
Replace the current passwords that you do not know. Choose a password with at least one capital letter, one number and one special character.
Note: Replace passwords that are required. You must crush not all passwords listed.
Sw1# conf t !--- To overwrite existing secret password Sw1(config)#enable secret !--- To overwrite existing enable password Sw1(config)#enable password !--- To overwrite existing vty password Sw1(config)#line vty 0 15 Sw1(config-line)#password Sw1(config-line)#login !--- To overwrite existing console password Sw1(config-line)#line con 0 Sw1(config-line)#password
Write the running configuration in the configuration file with the write memory command.
Sw1#write memory Building configuration... [OK] Sw1#
For factory reset:
do not give under the control of factory reset
Switch#copy flash:config.text system:running-config
can I copy the running configuration to Flash
Switch flash running-config #copy:
Destination file name [running-config]?
Building configuration...
[OK]
Switch #copy running-config startup-config
Name of destination file [startup-config]?
Building configuration...
[OK]
Review the link for more information below
Please note the useful messages.
Concerning
Vesta
"Everybody is genius." But if you judge a fish by its ability to climb on a tree, he will live his entire life, believing that this is stupid. " -
need help in the instruction box
Dear experts,
IM using oracle 11g
CREATE TABLE PAYLOG
(
ID VARCHAR2 (20).
DESCRIPTION VARCHAR2 (20)
);
INSERT INTO PAYLOG VALUES ("1, ' NOT CAPTURED");
INSERT INTO PAYLOG VALUES(2,'CAPTURED');
INSERT INTO PAYLOG VALUES(3,'APPROVED');
Here is the example output query example, I needed to know.
SELECT THE CHECK BOX
WHEN DESCRIPTION = 'CAPTURED' and 'APPROVED' - THEN when the captured data are currently it should display approved
Where description = 'CAPTURED or APPROVED' then 'approved' - when the data "CAPTURED or APPROVED" is present then display approved
When the description not in ("CAPTURED", "NO CAPTURE", "APPROVE") then 'rejected' - not in all these 3 data and then display rejected
) alias_name
END
OF PAYLOG;
Now, I want to apply the same logic to query below
with the temp as
(
Select
(CASE
DESCRIPTION = "NOT CAPTURED" THEN "rejected by the question.
DESCRIPTION = "CAPTURED or APPROVED" then "APPROVED."
WHEN NOT IN DESCRIPTION ("CAPTURED", "CAPTURED", "APPROVE") THEN 'OTHERS '.
)
snapshot_detail,
Count (*) NTC, sum (payment_amnt) total
of PAYLOG
)
Select snapshot_detail, sum (NTC) TOTAL_COUNT, sum (total) TOTAL_VALUE, round ((sum (NTC) / sum (NTC) over()) * 100.2) PERCENTAGE
temp
Group total, snapshot_detail, cnt
Union of all the
Select 'Total', sum (cnt), sum (total) TOTAL_VALUE, round ((sum (NTC) / sum (cnt)) * 100.2)
temp
Please help experts.
What of this
with temp as ( select snapshot_detail, sum(cnt) cnt , sum(total) total from ( select CASE WHEN DESCRIPTION = 'NOT CAPTURED' THEN 'Rejected by Issue' when DESCRIPTION = 'CAPTURED' or DESCRIPTION='APPROVED' THEN 'APPROVED' ----------------------------i want only one condition to be satisfied here WHEN DESCRIPTION NOT IN ('NOT CAPTURED','CAPTURED','APPROVED')THEN 'OTHERS' end snapshot_detail, count(*) cnt, sum(payment_amnt) total from paylog group by description ) group by snapshot_detail ) select snapshot_detail, sum(cnt) TOTAL_COUNT,sum(total) TOTAL_VALUE ,round((sum(cnt) / sum(cnt) over()) *100,2) PERCENTAGE from temp group by snapshot_detail ,total,cnt union all select 'Total', sum(cnt), sum(total) TOTAL_VALUE,round((sum(cnt) / sum(cnt)) *100,2) from temp;
-
Update records with the text box
APEX: 4.0.2
THEME: SAND
SERVER: Oracle-Application-Server-10g/10.1.3.1.0 Oracle-HTTP-Server
I'm just letting my user paste values in a text box, click a button and then update some fields for this record.
I created an example with more comments on the page:
workspace: stevendooley34
username: dev01
password: dev01
application: examples of Forum
page: update example
Keep in mind: the apex, theme, and Server version are different where I created the example. The above version, theme and the server are the stats of my workplace.
Thank you
Steven
-changes
Or if the modification of the code below would be easier I can go that route.
Update oef_itv_ndn
Set cancelled_cd =: MMR_CANCELLED_CD.
closed_date =: MMR_CLOSED_DATE.
admin_remarks =: MMR_ADMIN_REMARKS
where abc = '12345';
I created a dynamic Action with the above code works correctly.
but instead of "abc = '12345' 'I need it to be" where abc in: SEARCH_INPUT "
: SEARCH_INPUT is the text box that users can paste values in this format:
12345
67890
98765
so, when it comes to the clause "where" I need to maintain all records that are in the text box.
Post edited by: StevenD609
The "WHERE" clause is in the wrong position.
It should be part of the "USING" clause)
(the nickname table 'data' is defined in the scope of this subquery)
In addition, it seems to me good.
If you're still having problems, you can go to the forum 'SQL and PL/SQL '.
MK
-
XLATLONGNAME from the drop-down list should be a default value in the edit box
Hello
I have two fields in a grid, one named "TEST_Type" and one is named 'TEST_Name' edit box
Use cases, TEST_Name by default will be TEST_Type in Drop Down.
"TEST_Type" is the translation of edition Table and 'TEST_Name' will contain XLATLONGNAME.
I do drag XLATLONGNAME of PSXLATITEM table in my grid and make related field and "TEST_Type" a related control field.
Show LongName according to the value "TEST_Type.
If the field 'TEST_Name' RowInit, I wrote
If GetRow(). IsNew and
No (MYRecord.TEST_NAME. Value) then
MYRecord.TEST_NAME. Value = GetRow(). GetRecord (Record.PSXLATITEM). GetField (Field.XLATLONGNAME). Value;
End - If;
It gives an error
"Class line method GetRecord account PSXLATITEM is not valid. (2 268)
MYRecord.TEST_NAME. RowInit
The recording has been used as a parameter of the specified method. It is not valid for the current object. »
What is the problem?
Is there a better solution for this use case?
Thanks in advanceI think you mix a few think upwards.
The drop is on a class with the values of translate. So, when you set the property to the field from the drop-down list page to view the longxlatitem, you are finished.
If you want to copy the xlatlongvalue for some reason any other areas, use instead the domain object properties.
& dropdownlownlist = getrecord([YOUR_RECORD]).getfield ([YOUR_FIELD]);
VALUE = & dropdownlownlist. LongTranslateValue;Kind regards
Halin
Maybe you are looking for
-
Photos app why plant them?
I noticed that I can reach crash Photos app. When I hide a photo and add it to an album, I'll tho this album where this hidden picture is, I'm trying to duplicate (in the album) and the application crashes. After that, I reopen it the Photos app and
-
I knew how to put custom ringtones that I had as a ringtone of notification on the Backflip but this trick seems to not work on the atrix. We cannot do this, or is it some ways to do this?
-
Office jet 6500Aplus: Office jet has ceased to recognize network
All of a sudden... out of the blue... my printer does not recognize my net work. He tells me that my password is wrong and it is not. All devices recognize the network... it happened all of a sudden. Unplugged. Plugged. DON'T tell me to reset my rout
-
I have a Samsung SyncMaster 275TPlus 28 "monitor, which worked well on Windows XP On Windows 7, 64-bit computer, which installs a generic driver that fails to provide sufficient resolution. Cannot download the SyncMaster driver (on CD) error 'inf fil
-
Change the number of sequence on a created cryptomap
Hello I have a doubt regarding the sequence number of a crypto map. Now, I have a card encryption I'd like to do with lower priority (put a higher sequence number). There is currently 1 and and want to 3. To do this, I had to remove the card: No cryp