Różności …

Różności …

28 marca 2015

removie hidden files rm -rf

Zaszufladkowany do: Linux — Tagi: — Jacek @ 10:57

rm -rf .??*

21 marca 2015

EMPTY ADF FORM

Zaszufladkowany do: Java,Programowanie — Tagi: , — Jacek @ 08:28

Bindings ->

click on create control binding and select action item. In create action binding wizard select AppModuleDataControl->DepartmentsView1->Operation->createInsert.

In Executables section click in create executables Binding and select invokeAction item. In Insert invokeAction as CreateInsert

Edit the invokeCreateInsert and set the refresh to renderModel because when ever the page loaded this will execute the createInsert operation by inserting the empty record in the collection.

Źródło:

http://deepakcs.blogspot.com/2013/01/create-adf-input-form-without-first.html

11 marca 2015

Unable to reserve the .lok file for Integrated WebLogic Server (IntegratedWebLogicServer).

Zaszufladkowany do: Oracle,WebLogic — Tagi: — Jacek @ 09:18

Oracle JDeveloper 11.1.2.1

When JDeveloper closes unexpected without shutting down IntegratedWebLogicServer, trying to start IntegratedWLS next time, gives “Unable to reserve the .lok file for Integrated WebLogic Server (IntegratedWebLogicServer).”

First Solution is to kill the process in Task Manager. Open Task Manager & check for java.exe process for higher memory consumption. End the process.

IF above does not help then go to C:\Users\RRA\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain . Delete the edit.lok file.

http://adfblogspot.blogspot.com/2012/11/unable-to-reserve-lok-file-for.html

11 grudnia 2014

grant select on all tables

Zaszufladkowany do: Bazy danych,Oracle — Tagi: — Jacek @ 16:58

You could, of course, leverage dynamic SQL, i.e.

FOR x IN (SELECT * FROM user_tables)
LOOP
  EXECUTE IMMEDIATE 'GRANT SELECT ON ' || x.table_name || ' TO <<someone>>';
END LOOP;

Of course, if you’re doing this sort of thing, you’d normally grant the privileges to a role and grant that role to one or more users.

Login as your user name and then run the following

declare
cursor c1 is select table_name from user_tables;
cmd varchar2(200);
begin
for c in c1 loop
cmd := ‘GRANT SELECT ON ‘||c.table_name||’ TO YOURUSERNAME’;
execute immediate cmd;
end loop;
end;

ubuntu pakiety

Zaszufladkowany do: Linux — Tagi: — Jacek @ 14:02
sudo apt-get remove gnome-screensaver
sudo apt-get install gnome-core

-- skype instalka ---
sudo apt-file search libQtWebKit.so.4
libqtwebkit4: /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
libqtwebkit4: /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4.10
libqtwebkit4: /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4.10.2

sudo apt-get install libqtwebkit4:i386

3 grudnia 2014

create self signed certificate

Zaszufladkowany do: Linux — Jacek @ 19:04

http://www.akadia.com/services/ssh_test_certificate.html

php4 mod_php4.c

Zaszufladkowany do: Linux — Tagi: — Jacek @ 18:33

LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
Addmodule mod_php4.c

2 grudnia 2014

Ubuntu – DNS

Zaszufladkowany do: Linux — Tagi: — Jacek @ 12:09

# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference’ and `info’ packages installed, try:
# `info libc “Name Service Switch”‘ for information about this file.

passwd:         compat
group:          compat
shadow:         compat

hosts:          files dns [NOTFOUND=return] mdns4_minimal mdns4
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis

cat /etc/resolvconf/resolv.conf.d/head
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND — YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.0.150
nameserver 192.168.0.151

25 listopada 2014

Linux NTP server installtion

Zaszufladkowany do: Linux — Tagi: — Jacek @ 17:58

http://www.thegeekstuff.com/2014/06/linux-ntp-server-client/

22 listopada 2014

Error Opening RPD Online: [nQSError: 46036] Internal Assertion

Zaszufladkowany do: Bazy danych,Oracle — Tagi: — Jacek @ 13:12

http://bidirect.blogspot.com/2013/07/error-opening-rpd-online-nqserror-46036.html

Firefox – disable cache.

Zaszufladkowany do: Informatyka - pozostałe — Jacek @ 09:22

Tools > Page Info > Permissions > Maintain Offline Storage

type in the address bar about:config

then press the button i’l be careful i promise

then type in the bar browser.cache.disk.enable

then double click on it, to make it false

exit firefox and restart-it.

do the same with browser.cache.memory.enable
if you want to read more:

http://kb.mozillazine.org/Browser.cache.disk.enable

http://kb.mozillazine.org/Browser.cache.memory.enable

6 listopada 2014

Oracle BI

Zaszufladkowany do: Oracle — Tagi: — Jacek @ 10:18

http://www.oracle.com/us/solutions/business-analytics/business-intelligence/overview/index.html

http://www.oracle.com/technetwork/middleware/bi-foundation/overview/index.html?ssSourceSiteId=ocomen

22 października 2014

ADF

Zaszufladkowany do: Java,Programowanie — Tagi: — Jacek @ 08:50

ADF ADF Rich Client User Interface Guidelines

http://www.oracle.com/webfolder/ux/middleware/richclient/index.html

ADF Faces Rich Client Demos – Oracle ADF

ADF Mobile

http://www.oracle.com/technetwork/developer-tools/adf/adf-mobile-samples-1865088.html

ADF Oracle

http://www.oracle.com/technetwork/developer-tools/adf/overview/index.html

———-

Wyłączenie przewijania tabeli

10 października 2014

ora-00604 timezone region not found sql developer

Zaszufladkowany do: Bazy danych,Oracle — Tagi: — Jacek @ 07:06

check timezone in your database

add following entry do sqldeveloper.conf with appropriate timezone name

AddVMOption -Duser.timezone=America/Santiago

restart sqldeveloper

VOILA!

8 października 2014

dd i inne cuda

Zaszufladkowany do: Linux — Tagi: — Jacek @ 15:45
dd if=/dev/sr0 of=myCD.iso bs=2048 conv=noerror,sync
Creates an ISO disk image from a CD-ROM; in some cases the created ISO image may not be the same as the one which was used to burn the CD-ROM.[5]
dd if=/dev/sda2 of=/dev/sdb2 bs=4096 conv=noerror
Clones one partition to another.
dd if=/dev/ad0 of=/dev/ad1 bs=1M conv=noerror
Clones a hard disk “ad0″ to “ad1″

dd if=/dev/mapper/vgraid10-lvroot of=/dev/hdc2 bs=4096 conv=noerror

źródło: http://en.wikipedia.org/wiki/Dd_(Unix)

Linux switch console on OVM (konsola)

Zaszufladkowany do: Linux — Tagi: — Jacek @ 15:40

ALT+F1
ALT+F2

30 września 2014

mounting LVM volumes

Zaszufladkowany do: Linux — Tagi: — Jacek @ 19:07

SOURCE: http://pissedoffadmins.com/os/mount-unknown-filesystem-type-lvm2_member.html

mount: unknown filesystem type ‘LVM2_member’

i foobar’d a fedora 4 machine a couple of days ago and when i went to mount the disk into another machine i get this beautiful error:

mount: unknown filesystem type 'LVM2_member'

here was the syntax used:

termcb:~ # mount /dev/hda2 /mnt/old/
mount: unknown filesystem type 'LVM2_member'

and here was the drive :

termcb:~ # fdisk -l

Disk /dev/hda: 30.0 GB, 30005821440 bytes
255 heads, 63 sectors/track, 3648 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 3648 29198137+ 8e Linux LVM

so using lvm2 tools, we do a disk scan:

termcb:~ # lvmdiskscan
/dev/ram0 [ 62.50 MB]
/dev/ram1 [ 62.50 MB]
/dev/hda1 [ 101.94 MB]
/dev/sda1 [ 39.19 MB]
/dev/ram2 [ 62.50 MB]
/dev/hda2 [ 27.85 GB] LVM physical volume
/dev/sda2 [ 2.01 GB]
/dev/ram3 [ 62.50 MB]
/dev/sda3 [ 60.00 GB]
/dev/ram4 [ 62.50 MB]
/dev/sda4 [ 86.96 GB]
/dev/ram5 [ 62.50 MB]
/dev/ram6 [ 62.50 MB]
/dev/ram7 [ 62.50 MB]
/dev/ram8 [ 62.50 MB]
/dev/ram9 [ 62.50 MB]
/dev/ram10 [ 62.50 MB]
/dev/ram11 [ 62.50 MB]
/dev/ram12 [ 62.50 MB]
/dev/ram13 [ 62.50 MB]
/dev/ram14 [ 62.50 MB]
/dev/ram15 [ 62.50 MB]
0 disks
21 partitions
0 LVM physical volume whole disks
1 LVM physical volume

then we do a lvdisplay so we can get the LV Name and VG Name:

termcb:~ # lvdisplay
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID WBjpH6-Jezl-aI1z-XVSp-WzvW-qTDi-c1jkUv
LV Write Access read/write
LV Status NOT available
LV Size 26.06 GB
Current LE 834
Segments 1
Allocation inherit
Read ahead sectors 0

--- Logical volume ---
LV Name /dev/VolGroup00/LogVol01
VG Name VolGroup00
LV UUID Zykaw3-WBHU-oink-38W9-KylN-7u5j-PKx8qT
LV Write Access read/write
LV Status NOT available
LV Size 1.75 GB
Current LE 56
Segments 1
Allocation inherit
Read ahead sectors 0

and also a vgdisplay to make sure it was the right drive:

termcb:~ # vgdisplay
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 27.84 GB
PE Size 32.00 MB
Total PE 891
Alloc PE / Size 890 / 27.81 GB
Free PE / Size 1 / 32.00 MB
VG UUID ryYRi4-mXOd-XFaW-4xnR-h1cl-hphh-5QQnlM

so at this point i re-tried to mount but using the VG Name:

termcb:~ # mount /dev/VolGroup00/LogVol00 /mnt/old/
mount: special device /dev/VolGroup00/LogVol00 does not exist

still failure

so i did an lvscan next to see what the status of the lv drive is:

termcb:~ # lvscan
inactive '/dev/VolGroup00/LogVol00' [26.06 GB] inherit
inactive '/dev/VolGroup00/LogVol01' [1.75 GB] inherit

fuck…. still inactive
thats when i stumbled across this post :
http://www.fedoraforum.org/forum/archiv … 64964.html

now the rest was pretty self explanatory:

modprobe dm-mod

vgchange -ay

termcb:~ # lvscan
ACTIVE '/dev/VolGroup00/LogVol00' [26.06 GB] inherit
ACTIVE '/dev/VolGroup00/LogVol01' [1.75 GB] inherit

mount /dev/VolGroup00/LogVol00 /mount/point

Success!!

The following command adds the physical volume /dev/sdf1 to the volume group vg1.
# vgextend vg1 /dev/sdf1

(https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Logical_Volume_Manager_Administration/VG_grow.html)

http://www.rootusers.com/how-to-increase-the-size-of-a-linux-lvm-by-adding-a-new-disk/

http://www.howtogeek.com/howto/40702/how-to-manage-and-use-lvm-logical-volume-management-in-ubuntu/

24 września 2014

Ubuntu RPMs

Zaszufladkowany do: Linux — Tagi: — Jacek @ 14:16

sudo apt-get install alien
sudo alien -k nazwa_paczki.rpm  przekonwertorowanie paczki rpm na deb.
sudo alien -i nazwa paczki.rpm  bezpośrednia instalacja z paczki rpm.

18 sierpnia 2014

ubuntu start with (uruchom z)

Zaszufladkowany do: Linux — Tagi: — Jacek @ 09:07

To add any program in the list of default list of open with applications, open a terminal and use the following command:

sudo gedit /usr/share/applications/XXX.desktop

Please note two things. In XXX.desktop, XXX is the name of your application. And then use of gedit. You can use any other editor. I used Vim. If you use Gedit, it will dispaly some warning messages in the terminal but will open the file in a GUI.

In this desktop file, look for a line that looks like this:

Exec=XXX

If you have something like this, replace this line with:

Exec=XXX %F

13 sierpnia 2014

VirtualBox to VMware

Zaszufladkowany do: Oracle,VMware — Tagi: , — Jacek @ 13:37

In this tutorial I’ll show you how to convert a VirtualBox image to a VMware image.

I’m sure that there were many situation when you need to migrate a VirtualBox machine to a VMware one.

Tools used are VMware OVF Tool(ovftool.exe is a nice tool that will help you migrate from VirtualBox to VMware) and WMware vCenter Converter Standalone.

So, let’s convert ova image to vmx:

C:\PROGRA~1\VMware\VMware OVF Tool>ovftool.exe D:\IOU_VM.ova D:\IOU_VM.vmx
Opening OVA source: D:\IOU_VM.ova
Opening VMX target: D:\IOU_VM.vmx
Info:    License agreement for the virtual system
License: FREE and Only for PERSONAL use
Accept end-user license agreement?
Write ‘yes’ or ‘no’ (write ‘read’ to reread the EULA):
yes
Error: OVF Package is not supported by target:
- Line 39: Unsupported hardware family ‘virtualbox-2.2′.
Completed with errors


If you get Unsupported hardware family ‘virtualbox-2.2′ error you should try to use –lax argument.

This will transform the Unsupported hardware family ‘virtualbox-2.2′ error into a warning and convert ova file to vmx:

C:\PROGRA~1\VMware\VMware OVF Tool>ovftool.exe –lax D:\IOU_VM.ova D:\IOU_VM.vmx
Opening OVA source: D:\IOU_VM.ova
Opening VMX target: D:\IOU_VM.vmx
Info:    License agreement for the virtual system
License: FREE and Only for PERSONAL use
Accept end-user license agreement?
Write ‘yes’ or ‘no’ (write ‘read’ to reread the EULA):
yes
Warning:
- Line 39: Unsupported hardware family ‘virtualbox-2.2′.
- Line 80: OVF hardware element ‘ResourceType’ with instance ID ’5′: No support
for the virtual hardware device type ’20′.
Writing VMX file: D:\IOU_VM.vmx
Transfer Completed
Warning:
- No manifest entry found for: ‘IOU VM-disk1.vmdk’.
- No manifest file found.
Completed successfully
C:\PROGRA~1\VMware\VMware OVF Tool>


After that you use WMware vCenter Converter Standalone and get a working vmware machine.

From now you can deploy VirtualBox machines on VMware ESXi hosts.

Source

http://www.linuxexpert.ro/Virtualization-Tutorials/convert-virtualbox-image-to-vmware.html

« Nowsze wpisyStarsze wpisy »

Strona startowa: www.jaceksen.pl